summaryrefslogtreecommitdiff
path: root/gerbonara/utils.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2024-07-18 13:49:38 +0200
committerjaseg <git@jaseg.de>2024-07-18 13:49:38 +0200
commit8950a593f8be66d1258b6519622d30b27e8bb2ce (patch)
treeef2914e1501a6414f31ffdd11af2b3e9da40fb19 /gerbonara/utils.py
parent344825c5da3e2a187ec8aae193a4edaf48ae21f9 (diff)
downloadgerbonara-8950a593f8be66d1258b6519622d30b27e8bb2ce.tar.gz
gerbonara-8950a593f8be66d1258b6519622d30b27e8bb2ce.tar.bz2
gerbonara-8950a593f8be66d1258b6519622d30b27e8bb2ce.zip
Fix bug in SVG bounding box calculation
Diffstat (limited to 'gerbonara/utils.py')
-rw-r--r--gerbonara/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerbonara/utils.py b/gerbonara/utils.py
index 83a7d93..6d8445d 100644
--- a/gerbonara/utils.py
+++ b/gerbonara/utils.py
@@ -542,7 +542,7 @@ def svg_rotation(angle_rad, cx=0, cy=0):
return {'transform': f'rotate({float(math.degrees(angle_rad)):.4} {float(cx):.6} {float(cy):.6})'}
def setup_svg(tags, bounds, margin=0, arg_unit=MM, svg_unit=MM, pagecolor='white', tag=Tag, inkscape=False):
- (min_x, min_y), (max_x, max_y) = svg_unit.convert_bounds_from(arg_unit, bounds)
+ (min_x, min_y), (max_x, max_y) = bounds
if margin:
margin = svg_unit(margin, arg_unit)