update for migrategroups extension
This commit is contained in:
parent
d15de8b64a
commit
f3678d4c01
@ -11,6 +11,6 @@
|
||||
</effects-menu>
|
||||
</effect>
|
||||
<script>
|
||||
<command reldir="extensions" interpreter="python">fablabchemnitz_migrategroups.py</command>
|
||||
<command location="inx" interpreter="python">fablabchemnitz_migrategroups.py</command>
|
||||
</script>
|
||||
</inkscape-extension>
|
@ -57,8 +57,9 @@ class MigrateGroups(inkex.Effect):
|
||||
group.getparent().remove(group)
|
||||
|
||||
#remove the selected, now empty group (if it's the case)
|
||||
if self.svg.selected[0].tag == inkex.addNS('g','svg'):
|
||||
self.svg.selected[0].getparent().remove(self.svg.selected[0])
|
||||
if len(self.svg.selected) > 0:
|
||||
if self.svg.selected[0].tag == inkex.addNS('g','svg'):
|
||||
self.svg.selected[0].getparent().remove(self.svg.selected[0])
|
||||
|
||||
#TODO: make newGroup selected now. How ?
|
||||
MigrateGroups().run()
|
Reference in New Issue
Block a user