From 1bed3f2a39f054365606cf4b462e5feefc41677a Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sat, 18 Feb 2017 18:53:34 +0100 Subject: [PATCH] rectangularWall() fix positioning with ignore_widths containing parts of the lower left corner. --- boxes/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/boxes/__init__.py b/boxes/__init__.py index 7795e94..44ac558 100755 --- a/boxes/__init__.py +++ b/boxes/__init__.py @@ -1301,7 +1301,10 @@ class Boxes: if self.move(overallwidth, overallheight, move, before=True): return - self.moveTo(edges[-1].spacing(), edges[0].margin()) + if 7 not in ignore_widths: + self.moveTo(edges[-1].spacing()) + if 6 not in ignore_widths: + self.moveTo(0, edges[0].margin()) for i, l in enumerate((x, y, x, y)): self.cc(callback, i, y=edges[i].startwidth() + self.burn) e1, e2 = edges[i], edges[i + 1]