summaryrefslogtreecommitdiffstats
path: root/src/selection-chemistry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/selection-chemistry.cpp')
-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();