diff options
| author | Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> | 2019-07-18 07:56:45 +0000 |
|---|---|---|
| committer | Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> | 2019-07-27 02:07:52 +0000 |
| commit | f7c0b530a7a4e7232b2399b76336141ed19a5785 (patch) | |
| tree | 537d10b33c35e71f6d3272c557e49f39edc57a01 /src/ui/dialog/align-and-distribute.cpp | |
| parent | Fix for bug https://gitlab.com/inkscape/inbox/issues/695 disabled elemets not... (diff) | |
| download | inkscape-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/align-and-distribute.cpp')
| -rw-r--r-- | src/ui/dialog/align-and-distribute.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/dialog/align-and-distribute.cpp b/src/ui/dialog/align-and-distribute.cpp index 135584932..8e1565802 100644 --- a/src/ui/dialog/align-and-distribute.cpp +++ b/src/ui/dialog/align-and-distribute.cpp @@ -330,7 +330,7 @@ private : } } //sort bbox by anchors - std::sort(sorted.begin(), sorted.end()); + std::stable_sort(sorted.begin(), sorted.end()); // see comment in ActionAlign above int saved_compensation = prefs->getInt("/options/clonecompensation/value", SP_CLONE_COMPENSATION_UNMOVED); @@ -814,7 +814,7 @@ private : if (sorted.size() <= 1) return; //sort baselines - std::sort(sorted.begin(), sorted.end()); + std::stable_sort(sorted.begin(), sorted.end()); bool changed = false; |
