Browse Source

Fix test for mm SVG in helper.py.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
4ad213b545
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      helper.py

+ 2
- 2
helper.py View File

@@ -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


Loading…
Cancel
Save