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:
parent
c23b42a369
commit
2117bfbc15
|
@ -75,7 +75,8 @@ class SVGFile(object):
|
||||||
if 0 <= self.minx <= 50:
|
if 0 <= self.minx <= 50:
|
||||||
minx = 0
|
minx = 0
|
||||||
else:
|
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
|
maxx = 10*int(self.maxx//10)+10
|
||||||
miny = 10*int(self.miny//10)-10
|
miny = 10*int(self.miny//10)-10
|
||||||
maxy = 10*int(self.maxy//10)+10
|
maxy = 10*int(self.maxy//10)+10
|
||||||
|
|
Loading…
Reference in New Issue