diff options
| author | Thomas Holder <thomas@thomas-holder.de> | 2018-09-29 19:16:10 +0000 |
|---|---|---|
| committer | Thomas Holder <thomas@thomas-holder.de> | 2018-09-29 20:36:12 +0000 |
| commit | 532a535c02485b78323db8175a7bc6c463bf3b8c (patch) | |
| tree | d6f023a509f4c011969339466f1cd1fb1e3d0970 /src | |
| parent | CMake/po: Check for presence of intltool for creating inkscape.pot (diff) | |
| download | inkscape-532a535c02485b78323db8175a7bc6c463bf3b8c.tar.gz inkscape-532a535c02485b78323db8175a7bc6c463bf3b8c.zip | |
fix 90 deg cw/ccw rotation with inverted y-axis
Diffstat (limited to 'src')
| -rwxr-xr-x | src/selection-chemistry.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |
