From e60c8d7c21f31bf0d462290bd41312c8a1202d48 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Thu, 28 Mar 2024 12:10:47 +0100 Subject: [PATCH] Flexbox4: Use extra_length for latch Make latch cover the front wall properly. Thanks to https://github.com/Ricu64 for reporting. Resolves: #649 --- boxes/generators/flexbox4.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boxes/generators/flexbox4.py b/boxes/generators/flexbox4.py index e2f4bfd7c..433ee8891 100644 --- a/boxes/generators/flexbox4.py +++ b/boxes/generators/flexbox4.py @@ -80,9 +80,9 @@ def surroundingWall(self, move=None): self.edges["X"](c4, h + 2 * self.thickness) self.edge(y - r - self.latchsize) - self.latch(self.latchsize+t, False) + self.latch(self.latchsize, False, extra_length=t) self.edge(h + 2 * self.thickness) - self.latch(self.latchsize+t, False, True) + self.latch(self.latchsize, False, True, extra_length=t) self.edge(y - r - self.latchsize) self.edge(c4) self.edge(x - 2 * r)