summaryrefslogtreecommitdiffstats
path: root/src/selection-chemistry.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2015-05-02 01:47:39 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2015-05-02 01:47:39 +0000
commit280053e5ddfcdf158f62d2d6a72681b3092d2168 (patch)
treecac1af19e44cee72053ad5b91829596eee4a03a9 /src/selection-chemistry.cpp
parentfixed selection after ungroup (diff)
downloadinkscape-280053e5ddfcdf158f62d2d6a72681b3092d2168.tar.gz
inkscape-280053e5ddfcdf158f62d2d6a72681b3092d2168.zip
Fixed comparison function used in sorts
(bzr r14085)
Diffstat (limited to 'src/selection-chemistry.cpp')
-rw-r--r--src/selection-chemistry.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp
index c30d22503..68adf5381 100644
--- a/src/selection-chemistry.cpp
+++ b/src/selection-chemistry.cpp
@@ -326,7 +326,7 @@ static void sp_selection_copy_impl(std::vector<SPItem*> const &items, std::vecto
{
// Sort items:
std::vector<SPItem*> sorted_items(items);
- sort(sorted_items.begin(),sorted_items.end(),sp_object_compare_position);
+ sort(sorted_items.begin(),sorted_items.end(),sp_object_compare_position_bool);
// Copy item reprs:
for (std::vector<SPItem*>::const_iterator i = sorted_items.begin(); i != sorted_items.end(); i++) {
@@ -3245,7 +3245,7 @@ sp_selection_tile(SPDesktop *desktop, bool apply)
std::vector<SPItem*> items (selection->itemList());
- sort(items.begin(),items.end(),sp_object_compare_position);
+ sort(items.begin(),items.end(),sp_object_compare_position_bool);
// bottommost object, after sorting
SPObject *parent = items[0]->parent;
@@ -3836,7 +3836,7 @@ void sp_selection_set_mask(SPDesktop *desktop, bool apply_clip_path, bool apply_
std::vector<SPItem*> items(selection->itemList());
- sort(items.begin(),items.end(),sp_object_compare_position);
+ sort(items.begin(),items.end(),sp_object_compare_position_bool);
// See lp bug #542004
selection->clear();