diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/selection-chemistry.cpp | 4 |
1 files 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<SPItem *>(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 |
