summaryrefslogtreecommitdiffstats
path: root/src/selection-chemistry.cpp
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2013-06-14 10:39:11 +0000
committerMartin Owens <doctormo@gmail.com>2013-06-14 10:39:11 +0000
commita1d971856661b0655ed798941195f100aadf3dc4 (patch)
treee48a77cea5a6665149e2cbed8c0eb843e0a264c2 /src/selection-chemistry.cpp
parentDo not allow markers for children of markers (prevent loop) (diff)
downloadinkscape-a1d971856661b0655ed798941195f100aadf3dc4.tar.gz
inkscape-a1d971856661b0655ed798941195f100aadf3dc4.zip
Allow svg elements to be ungrouped
Fixed bugs: - https://launchpad.net/bugs/166327 (bzr r12373)
Diffstat (limited to 'src/selection-chemistry.cpp')
-rw-r--r--src/selection-chemistry.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp
index cd0001175..0fea43e30 100644
--- a/src/selection-chemistry.cpp
+++ b/src/selection-chemistry.cpp
@@ -784,8 +784,10 @@ void sp_selection_ungroup(SPDesktop *desktop)
continue;
}
- /* We do not allow ungrouping <svg> etc. (lauris) */
- if (strcmp(group->getRepr()->name(), "svg:g") && strcmp(group->getRepr()->name(), "svg:switch")) {
+ // This check reflects the g_return_if_fail in sp_item_group_ungroup and
+ // may be a redundent. It also allows ungrouping of 'a' tags and we dont
+ if (strcmp(group->getRepr()->name(), "svg:g") && strcmp(group->getRepr()->name(), "svg:switch") &&
+ strcmp(group->getRepr()->name(), "svg:svg")) {
// keep the non-group item in the new selection
new_select = g_slist_append(new_select, group);
continue;