From 6a9254d69806df5ac3f4c8eb6edc1b0cca57160e Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Thu, 27 Feb 2014 05:19:36 +0100 Subject: Correct the ungrouping logic so that selected clones of selected groups are only unlinked, with the resulting groups not ungrouped (bzr r13064) --- src/selection-chemistry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index ea95cecd8..821d078d1 100644 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -840,8 +840,8 @@ void sp_selection_ungroup(Inkscape::Selection *selection, SPDesktop *desktop) for (GSList *item = items; item; item = item->next) { SPItem *obj = static_cast(item->data); - // do not ungroup switches - if (SP_IS_GROUP(obj) && !SP_IS_SWITCH(obj)) { + // ungroup only the groups marked earlier + if (g_slist_find(groups, item->data) != NULL) { GSList *children = NULL; sp_item_group_ungroup(SP_GROUP(obj), &children, false); // add the items resulting from ungrouping to the selection -- cgit v1.2.3