Skip to content

Commit

Permalink
Merge pull request #66 from meteogrid/zope_master
Browse files Browse the repository at this point in the history
svg2rml not working when viewBox not present
  • Loading branch information
strichter committed Dec 8, 2020
2 parents ab86242 + b44309f commit 88eb0ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/z3c/rml/svg2rlg.py
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,8 @@ def render(self, node, parent = None):
minx, miny, width, height = node.get("viewBox").split()
except ValueError:
raise SVGError("viewBox values not valid")

else:
minx, miny = 0, 0
if width.endswith('%') and height.endswith('%'):
# handle relative size
wscale = parseLength(width) / 100.
Expand Down

0 comments on commit 88eb0ed

Please sign in to comment.