Do not error out if drawing does into the negative x direction

... unless there is not enough place for the viewport.
This commit is contained in:
Florian Festi 2016-07-24 22:28:54 +02:00
parent c23b42a369
commit 2117bfbc15
1 changed files with 2 additions and 1 deletions

View File

@ -75,7 +75,8 @@ class SVGFile(object):
if 0 <= self.minx <= 50:
minx = 0
else:
raise ValueError("Left end of drawing at wrong place: %imm (0-50mm expected)" % self.minx)
minx = 10*int(self.minx//10)-10
#raise ValueError("Left end of drawing at wrong place: %imm (0-50mm expected)" % self.minx)
maxx = 10*int(self.maxx//10)+10
miny = 10*int(self.miny//10)-10
maxy = 10*int(self.maxy//10)+10