From 6bcef54175814eeacf510402c8bb8e9e13c14613 Mon Sep 17 00:00:00 2001 From: Thomas Holder Date: Fri, 21 Sep 2018 20:10:53 +0200 Subject: fix CTRL+button2 rotation direction CTRL+button2 canvas rotation was inverted with flipped canvas or desktop y-axis down. --- src/display/canvas-rotate.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/display/canvas-rotate.cpp b/src/display/canvas-rotate.cpp index 61728ca50..9d5e5f0ac 100644 --- a/src/display/canvas-rotate.cpp +++ b/src/display/canvas-rotate.cpp @@ -199,6 +199,7 @@ static int sp_canvas_rotate_event (SPCanvasItem *item, GdkEvent *event) // Rotate the actual canvas desktop->rotate_relative_center_point (desktop->w2d(cr->center), + (desktop->w2d().det() > 0 ? -1 : 1) * Geom::rad_from_deg(cr->angle) ); // We're done -- cgit v1.2.3