summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThomas Holder <thomas@thomas-holder.de>2018-09-30 17:41:14 +0000
committerThomas Holder <thomas@thomas-holder.de>2018-09-30 17:41:14 +0000
commite7b931159fcc710541c5fa2fbfd82704a044eb23 (patch)
treef8f77b027c7b19489c75f38cd7e98daef77b7dea /src
parentFix for bug #1769679, Crash when opening file with live path effect (diff)
downloadinkscape-e7b931159fcc710541c5fa2fbfd82704a044eb23.tar.gz
inkscape-e7b931159fcc710541c5fa2fbfd82704a044eb23.zip
fix Align > Rearrange > clockwise with y-axis down
Diffstat (limited to 'src')
-rw-r--r--src/ui/dialog/align-and-distribute.cpp3
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();