diff options
| author | Thomas Holder <thomas@thomas-holder.de> | 2018-09-30 17:41:14 +0000 |
|---|---|---|
| committer | Thomas Holder <thomas@thomas-holder.de> | 2018-09-30 17:41:14 +0000 |
| commit | e7b931159fcc710541c5fa2fbfd82704a044eb23 (patch) | |
| tree | f8f77b027c7b19489c75f38cd7e98daef77b7dea /src/ui | |
| parent | Fix for bug #1769679, Crash when opening file with live path effect (diff) | |
| download | inkscape-e7b931159fcc710541c5fa2fbfd82704a044eb23.tar.gz inkscape-e7b931159fcc710541c5fa2fbfd82704a044eb23.zip | |
fix Align > Rearrange > clockwise with y-axis down
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/dialog/align-and-distribute.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/dialog/align-and-distribute.cpp b/src/ui/dialog/align-and-distribute.cpp index b21fd2956..c606f52bf 100644 --- a/src/ui/dialog/align-and-distribute.cpp +++ b/src/ui/dialog/align-and-distribute.cpp @@ -580,6 +580,9 @@ private : // First criteria: Sort according to the angle to the center point double angle_a = atan2(double(point_a[Geom::Y]), double(point_a[Geom::X])); double angle_b = atan2(double(point_b[Geom::Y]), double(point_b[Geom::X])); + double dt_yaxisdir = SP_ACTIVE_DESKTOP ? SP_ACTIVE_DESKTOP->yaxisdir() : 1; + angle_a *= -dt_yaxisdir; + angle_b *= -dt_yaxisdir; if (angle_a != angle_b) return (angle_a < angle_b); // Second criteria: Sort according to the distance the center point Geom::Coord length_a = point_a.length(); |
