From 6bce36b6ede16d28626d40a0b4d60954a35ad48f Mon Sep 17 00:00:00 2001 From: Michael Schwarz Date: Thu, 6 Aug 2015 17:32:53 +0200 Subject: Inkscape export: Fix wrong units in Asymptote export. The generate asymptote file would use the Inkscape document coordinates but Asymptote always uses PostScript points. --- support/inkscape/inkscape.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'support/inkscape/inkscape.py') diff --git a/support/inkscape/inkscape.py b/support/inkscape/inkscape.py index 09e7a7b..876b0a7 100644 --- a/support/inkscape/inkscape.py +++ b/support/inkscape/inkscape.py @@ -14,17 +14,17 @@ def get_inkscape_layers(svg_path): inkscape_name = i.get('{http://www.inkscape.org/namespaces/inkscape}label').strip() if inkscape_name.endswith(']'): - dxf_name, args = inkscape_name[:-1].rsplit('[', 1) + export_name, args = inkscape_name[:-1].rsplit('[', 1) - dxf_name = dxf_name.strip() + export_name = export_name.strip() args = args.strip() use_paths = 'p' in args else: use_paths = False - dxf_name = inkscape_name + export_name = inkscape_name - yield Layer(inkscape_name, dxf_name, use_paths = use_paths) + yield Layer(inkscape_name, export_name, use_paths) return list(iter_layers()) -- cgit