Ommit zero length sides in surroundingWall()
This commit is contained in:
parent
27645cedbe
commit
77773573fb
|
@ -957,6 +957,12 @@ class Boxes:
|
||||||
|
|
||||||
self.cc(callback, 0, y=bottomwidth+self.burn)
|
self.cc(callback, 0, y=bottomwidth+self.burn)
|
||||||
bottom(x/2.0-r)
|
bottom(x/2.0-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)):
|
for i, l in zip(range(4), (y, x, y, 0)):
|
||||||
self.flexEdge(c4, h+topwidth+bottomwidth)
|
self.flexEdge(c4, h+topwidth+bottomwidth)
|
||||||
self.cc(callback, i+1, y=bottomwidth+self.burn)
|
self.cc(callback, i+1, y=bottomwidth+self.burn)
|
||||||
|
|
Loading…
Reference in New Issue