From fadf1fe3d7814bbb379d296cac9e7e2f6518eb23 Mon Sep 17 00:00:00 2001 From: Ay1nDas Date: Sat, 6 Dec 2025 14:26:51 +0530 Subject: [PATCH] Fix rotation is backwards with Y-axis pointed up Multiply 'd->yaxisdir()' to get 'angle_degrees' with respect to current orientation of Y-axis. Fixes: https://gitlab.com/inkscape/inkscape/-/issues/5992 --- src/selection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/selection.cpp b/src/selection.cpp index 778e91a9f6..7ccc910df0 100644 --- a/src/selection.cpp +++ b/src/selection.cpp @@ -237,7 +237,7 @@ void Selection::rotateAnchored(double angle_degrees, double zoom) } if (auto d = desktop()) { - angle_degrees = d->yaxisdir() ? angle_degrees : -angle_degrees; + angle_degrees *= d->yaxisdir(); } if (zoom != 1.0) { -- GitLab