Ommit zero length sides in surroundingWall()

This commit is contained in:
Florian Festi 2016-03-29 21:29:57 +02:00
parent 27645cedbe
commit 77773573fb
1 changed files with 11 additions and 5 deletions

View File

@ -957,11 +957,17 @@ class Boxes:
self.cc(callback, 0, y=bottomwidth+self.burn)
bottom(x/2.0-r)
for i, l in zip(range(4), (y, x, y, 0)):
self.flexEdge(c4, h+topwidth+bottomwidth)
self.cc(callback, i+1, y=bottomwidth+self.burn)
if i < 3:
bottom(l-2*r)
if (y-2*r) < 1E-3:
self.flexEdge(2*c4, h+topwidth+bottomwidth)
self.cc(callback, 2, y=bottomwidth+self.burn)
bottom(x-2*r)
self.flexEdge(2*c4, h+topwidth+bottomwidth)
else:
for i, l in zip(range(4), (y, x, y, 0)):
self.flexEdge(c4, h+topwidth+bottomwidth)
self.cc(callback, i+1, y=bottomwidth+self.burn)
if i < 3:
bottom(l-2*r)
bottom(x/2.0-r)
self.corner(90)