Fix placement of rectangularTriangles

This commit is contained in:
Florian Festi 2018-01-21 16:48:43 +01:00
parent 4e034949d3
commit 8314a413fd
1 changed files with 5 additions and 2 deletions

View File

@ -1579,6 +1579,9 @@ class Boxes:
if self.move(overallwidth, overallheight, move, before=True):
return
if self.debug:
self.rectangularHole(width/2., height/2., width, height)
if num > 1:
self.moveTo(self.spacing + edges[-1].spacing())
@ -1603,9 +1606,9 @@ class Boxes:
self.ctx.stroke()
if n % 2:
self.moveTo(-edges[1].spacing()-2*self.spacing-edges[-1].spacing(), height-edges[1].spacing(), 180)
self.moveTo(-edges[1].spacing()-2*self.spacing-edges[-1].spacing(), height-edges[0].spacing(), 180)
else:
self.moveTo(width+1*edges[1].spacing()-self.spacing-2*edges[-1].spacing(), height-edges[1].spacing(), 180)
self.moveTo(width+1*edges[1].spacing()-self.spacing-2*edges[-1].spacing(), height-edges[0].spacing(), 180)
self.move(overallwidth, overallheight, move)