From 4ad213b5456aebf1c7c15f7202a80da7cdda730c Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Wed, 17 Nov 2021 19:06:18 -0500 Subject: [PATCH] Fix test for mm SVG in helper.py. --- helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helper.py b/helper.py index 5ca352d7..63bb1927 100755 --- a/helper.py +++ b/helper.py @@ -273,8 +273,8 @@ def panel_to_components(tree): root = tree.getroot() # Get SVG scale relative to mm - root_width = root.get('width') - if re.match('\d+mm', root_width): + root_height = root.get('height') + if root_height.endswith("mm"): scale = 1 else: svg_dpi = 75