Hey Lauris,
I'm fixing https://bugs.launchpad.net/inkscape/+bug/166327 and I have to commit code which goes directly against your comment in the code:
787 /* We do not allow ungrouping <svg> etc. (lauris) */ 788 if (strcmp(group->getRepr()->name(), "svg:g") && strcmp(group->getRepr()->name(), "svg:switch")) {
Since I'm enabling the ungrouping of svg elements, I have to ask why we may not want to be able to upgroup svg elements. Should we check for element->parent != NULL here to make sure we don't ungroup the top-level element by mistake?
Martin,
Maybe it can be fixed with a user select of linking or including the svg like images.
El vie, 14-06-2013 a las 06:35 -0400, Martin Owens escribió:
Hey Lauris,
I'm fixing https://bugs.launchpad.net/inkscape/+bug/166327 and I have to commit code which goes directly against your comment in the code:
787 /* We do not allow ungrouping <svg> etc. (lauris) */ 788 if (strcmp(group->getRepr()->name(), "svg:g") && strcmp(group->getRepr()->name(), "svg:switch")) {
Since I'm enabling the ungrouping of svg elements, I have to ask why we may not want to be able to upgroup svg elements. Should we check for element->parent != NULL here to make sure we don't ungroup the top-level element by mistake?
Martin,
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
2013/6/14 Martin Owens <doctormo@...400...>:
Hey Lauris,
I'm fixing https://bugs.launchpad.net/inkscape/+bug/166327 and I have to commit code which goes directly against your comment in the code:
787 /* We do not allow ungrouping <svg> etc. (lauris) */ 788 if (strcmp(group->getRepr()->name(), "svg:g") && strcmp(group->getRepr()->name(), "svg:switch")) {
Since I'm enabling the ungrouping of svg elements, I have to ask why we may not want to be able to upgroup svg elements. Should we check for element->parent != NULL here to make sure we don't ungroup the top-level element by mistake?
I think that back when this code was written there was an assumption that there is only one <svg> element in the document, the topmost one. Naturally this is no longer the case.
Regards, Krzysztof
participants (3)
-
Jabiertxo Arraiza Cenoz
-
Krzysztof Kosiński
-
Martin Owens