From 4644c119495e175e909096d4e947dbb9e5f8234a Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Tue, 9 Jul 2024 18:18:49 +0200 Subject: Pull comp: remove holes again (#3067) * pull comp: remove holes again * rescue some more broken shapes --- lib/extensions/stitch_plan_preview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/extensions/stitch_plan_preview.py') diff --git a/lib/extensions/stitch_plan_preview.py b/lib/extensions/stitch_plan_preview.py index ddb0e3d1..8d08f6d6 100644 --- a/lib/extensions/stitch_plan_preview.py +++ b/lib/extensions/stitch_plan_preview.py @@ -139,7 +139,7 @@ class StitchPlanPreview(InkstitchExtension): out = findall(r"(?m)^-?\d+\.?\d*$", out) # Parse the returned coordinates out into viewport units - x, y, width, height = map(lambda x: svg.viewport_to_unit(f'{x}px', svg.unit), out) + x, y, width, height = map(lambda x: svg.viewport_to_unit(f'{x}px'), out) # Embed the rasterized stitch plan into the SVG, and replace the original stitch plan with open(temp_png_path, "rb") as f: -- cgit v1.2.3