summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2019-06-14 17:20:36 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2019-06-14 17:20:36 +0000
commit52cc60498f5044d4ac4874c08fcdce61d62142e5 (patch)
treecb8499920dc34181341fc7a34127d5ec3383b729
parentStop inflating inkscape.pot and only update it on demand (diff)
downloadinkscape-52cc60498f5044d4ac4874c08fcdce61d62142e5.tar.gz
inkscape-52cc60498f5044d4ac4874c08fcdce61d62142e5.zip
Fix grouping performance
-rwxr-xr-xsrc/selection-chemistry.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp
index ea9d1eace..fc3c8ae84 100755
--- a/src/selection-chemistry.cpp
+++ b/src/selection-chemistry.cpp
@@ -722,6 +722,7 @@ Inkscape::XML::Node* ObjectSet::group() {
std::vector<Inkscape::XML::Node*> p(xmlNodes().begin(), xmlNodes().end());
std::sort(p.begin(), p.end(), sp_repr_compare_position_bool);
+ this->clear();
// Remember the position and parent of the topmost object.
gint topmost = p.back()->position();