From 532a535c02485b78323db8175a7bc6c463bf3b8c Mon Sep 17 00:00:00 2001 From: Thomas Holder Date: Sat, 29 Sep 2018 21:16:10 +0200 Subject: fix 90 deg cw/ccw rotation with inverted y-axis --- src/selection-chemistry.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index 6584244c2..11dc735e9 100755 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -1868,7 +1868,8 @@ void ObjectSet::rotate90(bool ccw) return; auto items_copy = items(); - Geom::Rotate const rot_90(Geom::Point(0, ccw ? 1 : -1)); // pos. or neg. rotation, depending on the value of ccw + double y_dir = desktop() ? desktop()->yaxisdir() : 1; + Geom::Rotate const rot_90(Geom::Point(0, ccw ? -y_dir : y_dir)); // pos. or neg. rotation, depending on the value of ccw for (auto l=items_copy.begin();l!=items_copy.end() ;++l) { SPItem *item = *l; if (item) { -- cgit v1.2.3