From db16b16533515a6065225fff6751f0795873fd09 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Thu, 13 Sep 2018 09:23:56 +0200 Subject: [PATCH] .rectangularWall(): Fix placement for hex holes enabled by holesMargin param --- boxes/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boxes/__init__.py b/boxes/__init__.py index f6e95ea..1bab0ec 100755 --- a/boxes/__init__.py +++ b/boxes/__init__.py @@ -1627,7 +1627,7 @@ class Boxes: self.edgeCorner(e1, e2, 90) if holesMargin is not None: - self.moveTo(holesMargin + edges[-1].endwidth(), + self.moveTo(holesMargin, holesMargin + edges[0].startwidth()) self.hexHolesRectangle(x - 2 * holesMargin, y - 2 * holesMargin)