From f6fa4967ab7eb8aa4541d91b7da22fc115bc2a0f Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Tue, 21 Sep 2021 23:01:53 +0200 Subject: [PATCH] surroundingWall: Fix size calculation Resolves: #297 --- boxes/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boxes/__init__.py b/boxes/__init__.py index 055532b..15e7648 100755 --- a/boxes/__init__.py +++ b/boxes/__init__.py @@ -1732,7 +1732,7 @@ class Boxes: bottomwidth = bottom.startwidth() overallwidth = 2*x + 2*y - 8*r + 4*c4 + (self.edges["d"].spacing() + self.edges["D"].spacing() + self.spacing) * pieces - overallheight = h + top.spacing() + bottom.spacing() + overallheight = h + max(t, top.spacing()) + max(t, bottom.spacing()) if self.move(overallwidth, overallheight, move, before=True): return