diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2015-05-07 22:45:15 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2015-05-07 22:45:15 +0000 |
| commit | 57808dd1abe86ae0088a74bd88041321f5df5fb8 (patch) | |
| tree | 51510fffb8f7cc7453d49a56b9e272fdb1d567ab /src/path-chemistry.cpp | |
| parent | better fix, using std::remove instead of std::erase (diff) | |
| download | inkscape-57808dd1abe86ae0088a74bd88041321f5df5fb8.tar.gz inkscape-57808dd1abe86ae0088a74bd88041321f5df5fb8.zip | |
fix for stl "remove"
(bzr r14123)
Diffstat (limited to 'src/path-chemistry.cpp')
| -rw-r--r-- | src/path-chemistry.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp index ff307cd66..7bd5b6298 100644 --- a/src/path-chemistry.cpp +++ b/src/path-chemistry.cpp @@ -388,7 +388,7 @@ sp_item_list_to_curves(const std::vector<SPItem*> &items, std::vector<SPItem*>& if (repr) { to_select.insert(to_select.begin(),repr); did = true; - remove(selected.begin(),selected.end(),item); + selected.erase(remove(selected.begin(), selected.end(), item), selected.end()); } continue; @@ -413,7 +413,7 @@ sp_item_list_to_curves(const std::vector<SPItem*> &items, std::vector<SPItem*>& continue; did = true; - remove(selected.begin(),selected.end(),item); + selected.erase(remove(selected.begin(), selected.end(), item), selected.end()); // remember the position of the item gint pos = item->getRepr()->position(); |
