Removed deprecation from travel extension

This commit is contained in:
leyghisbb 2020-08-30 11:29:38 +02:00
parent 97d63b969d
commit 4c9554b3e7

View File

@ -99,7 +99,7 @@ class Travel(inkex.Effect):
doc_h = self.svg.unittouu(svg.get('height'))
# get selected items and validate
selected = svg.selection.paint_order()
selected = self.svg.get_z_selected()
if not selected:
inkex.errormsg('Exactly two objects must be selected: a rect and a template. See "help" for details.')
@ -265,4 +265,4 @@ class Travel(inkex.Effect):
attribs['d'] = str(Path(path))
obj_copy = etree.SubElement(group, obj.tag, attribs)
Travel().run()
Travel().run()