From 52cc60498f5044d4ac4874c08fcdce61d62142e5 Mon Sep 17 00:00:00 2001 From: Marc Jeanmougin Date: Fri, 14 Jun 2019 19:20:36 +0200 Subject: Fix grouping performance --- src/selection-chemistry.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/selection-chemistry.cpp') 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 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(); -- cgit v1.2.3