UnevenHeightBox: Fix lid

Looks like it is difficult to come up with a really non symmectrical test case.
Thanks to Mekol for pointing this out!

Related #60
This commit is contained in:
Florian Festi 2018-03-17 21:04:24 +01:00
parent fa44eb27cf
commit b2c54310b6
1 changed files with 10 additions and 10 deletions

View File

@ -106,14 +106,14 @@ class UnevenHeightBox(Boxes):
self.ctx.restore()
self.moveTo(0, maxh+self.edges["F"].spacing()+self.edges[b].spacing()+3*self.spacing, 180)
self.wall(y, h0, h1, "Fff", move="right" +
(" only" if h0 == h1 == 0.0 else ""))
self.wall(x, h1, h2, "FFF", move="right" +
(" only" if h1 == h2 == 0.0 else ""))
self.wall(y, h2, h3, "Fff", move="right" +
(" only" if h2 == h3 == 0.0 else ""))
self.wall(x, h3, h0, "FFF", move="right" +
(" only" if h3 == h0 == 0.0 else ""))
self.wall(y, h0, h3, "Fff", move="right" +
(" only" if h0 == h3 == 0.0 else ""))
self.wall(x, h3, h2, "FFF", move="right" +
(" only" if h3 == h2 == 0.0 else ""))
self.wall(y, h2, h1, "Fff", move="right" +
(" only" if h2 == h1 == 0.0 else ""))
self.wall(x, h1, h0, "FFF", move="right" +
(" only" if h1 == h0 == 0.0 else ""))
self.close()