Ommit zero length sides in surroundingWall()
This commit is contained in:
parent
27645cedbe
commit
77773573fb
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue