diff options
| author | Thomas Holder <thomas@thomas-holder.de> | 2018-09-21 18:10:53 +0000 |
|---|---|---|
| committer | Thomas Holder <thomas@thomas-holder.de> | 2018-09-21 18:15:55 +0000 |
| commit | 6bcef54175814eeacf510402c8bb8e9e13c14613 (patch) | |
| tree | 1f08246a249dfde2f81aa7bf65acbb33ee0c730b /src/display/canvas-rotate.cpp | |
| parent | Fix window resize canvas orientation interference (diff) | |
| download | inkscape-6bcef54175814eeacf510402c8bb8e9e13c14613.tar.gz inkscape-6bcef54175814eeacf510402c8bb8e9e13c14613.zip | |
fix CTRL+button2 rotation direction
CTRL+button2 canvas rotation was inverted with flipped canvas or desktop y-axis down.
Diffstat (limited to 'src/display/canvas-rotate.cpp')
| -rw-r--r-- | src/display/canvas-rotate.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
