fix issue #80
This commit is contained in:
parent
34d058deb3
commit
85f3281a53
@ -45,6 +45,7 @@ import gettext
|
|||||||
_ = gettext.gettext
|
_ = gettext.gettext
|
||||||
|
|
||||||
from lxml import etree
|
from lxml import etree
|
||||||
|
from inkex import Rectangle
|
||||||
|
|
||||||
class LivingHinge(inkex.EffectExtension):
|
class LivingHinge(inkex.EffectExtension):
|
||||||
|
|
||||||
@ -72,7 +73,7 @@ class LivingHinge(inkex.EffectExtension):
|
|||||||
if self.svg.selected:
|
if self.svg.selected:
|
||||||
# put lines on the current layer
|
# put lines on the current layer
|
||||||
parent = self.svg.get_current_layer()
|
parent = self.svg.get_current_layer()
|
||||||
for id, node in self.svg.selected.items():
|
for id, node in self.svg.selection.filter(Rectangle).items():
|
||||||
# inkex.utils.debug("id:" + id)
|
# inkex.utils.debug("id:" + id)
|
||||||
# for key in node.attrib.keys():
|
# for key in node.attrib.keys():
|
||||||
# inkex.utils.debug(key + ": " + node.get(key))
|
# inkex.utils.debug(key + ": " + node.get(key))
|
||||||
|
Loading…
Reference in New Issue
Block a user