be sure to visit selected nodes in the right order

pull/1/head
Lex Neva 2016-10-26 13:13:27 -04:00
rodzic f81a70766f
commit a7ef582025
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -698,7 +698,10 @@ class Embroider(inkex.Effect):
dbg.write("starting nodes: %s" % time.time())
dbg.flush()
if self.selected:
for node in self.selected.itervalues():
# be sure to visit selected nodes in the order they're stacked in
# the document
for node in self.document.getroot().iter():
if node.get("id") in self.selected:
self.handle_node(node)
else:
self.handle_node(self.document.getroot())