From f705ef25752f7c5c691666468ad0e1a0eeb89e43 Mon Sep 17 00:00:00 2001 From: leyghisbb Date: Sun, 30 Aug 2020 11:44:42 +0200 Subject: [PATCH] Issue in longest continuous path --- extensions/fablabchemnitz_longest_continuous_paths.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/extensions/fablabchemnitz_longest_continuous_paths.py b/extensions/fablabchemnitz_longest_continuous_paths.py index 5b0d3e05..214ff54d 100644 --- a/extensions/fablabchemnitz_longest_continuous_paths.py +++ b/extensions/fablabchemnitz_longest_continuous_paths.py @@ -173,7 +173,7 @@ class OptimizePaths(inkex.GenerateExtension): vertices = [] edges = [] - objects = self.svg.selection.filter(inkex.PathElement).values() + objects = self.svg.get_selected(inkex.PathElement) for node in objects: if node.tag == inkex.addNS('path', 'svg'): @@ -613,6 +613,4 @@ class OptimizePaths(inkex.GenerateExtension): self.log("Total duration: {:.0f} sec ({:.1f} min)".format(totalDuration, totalDuration / 60)) return group - -if __name__ == '__main__': - OptimizePaths().run() \ No newline at end of file +OptimizePaths().run()