Skip to content

Commit 8bfa548

Browse files
committed
Reduce correction of final hole to fix with_many_dividers_keyed test
1 parent 11924d1 commit 8bfa548

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

tabbedboxmaker/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,8 +1386,9 @@ def render_side(
13861386
# draw last for divider joints in side walls
13871387
if isTab and numDividers > 0 and side.tab_symmetry == 0 and not isDivider:
13881388
# BH: Find out if this is the right correction. Without it the with_dividers_keyed_all.svg test is broken
1389-
firstholelenX += (holeLenX - thickness) if holeLenX else 0
1390-
firstholelenY += (holeLenY - thickness) if holeLenY else 0
1389+
if firstholelenX == 0 and firstholelenY == 0:
1390+
firstholelenX += (holeLenX - thickness) if holeLenX else 0
1391+
firstholelenY += (holeLenY - thickness) if holeLenY else 0
13911392

13921393
for dividerNumber in range(1, int(numDividers) + 1):
13931394
Dx = (

0 commit comments

Comments
 (0)