summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/transformation.cpp
diff options
context:
space:
mode:
authorNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-07-18 07:56:45 +0000
committerNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-07-27 02:07:52 +0000
commitf7c0b530a7a4e7232b2399b76336141ed19a5785 (patch)
tree537d10b33c35e71f6d3272c557e49f39edc57a01 /src/ui/dialog/transformation.cpp
parentFix for bug https://gitlab.com/inkscape/inbox/issues/695 disabled elemets not... (diff)
downloadinkscape-f7c0b530a7a4e7232b2399b76336141ed19a5785.tar.gz
inkscape-f7c0b530a7a4e7232b2399b76336141ed19a5785.zip
Distribute/Move considers selection order
Only used when objects have same anchor position. Address gitlab.com/inkscape/inbox/issues/665
Diffstat (limited to 'src/ui/dialog/transformation.cpp')
-rw-r--r--src/ui/dialog/transformation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/dialog/transformation.cpp b/src/ui/dialog/transformation.cpp
index a2fa77dfc..f2126540a 100644
--- a/src/ui/dialog/transformation.cpp
+++ b/src/ui/dialog/transformation.cpp
@@ -675,7 +675,7 @@ void Transformation::applyPageMove(Inkscape::Selection *selection)
}
}
//sort bbox by anchors
- std::sort(sorted.begin(), sorted.end());
+ std::stable_sort(sorted.begin(), sorted.end());
double move = x;
for ( std::vector<BBoxSort> ::iterator it (sorted.begin());
@@ -697,7 +697,7 @@ void Transformation::applyPageMove(Inkscape::Selection *selection)
}
}
//sort bbox by anchors
- std::sort(sorted.begin(), sorted.end());
+ std::stable_sort(sorted.begin(), sorted.end());
double move = y;
for ( std::vector<BBoxSort> ::iterator it (sorted.begin());