Skip to content

Commit

Permalink
rectangularWall: Fix placement for ignore_widths 6
Browse files Browse the repository at this point in the history
we need to move for the edge margin every time. Otherwise the edge will
stick out.
  • Loading branch information
florianfesti committed Aug 8, 2022
1 parent 00ab597 commit d6faf5b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions boxes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2357,8 +2357,7 @@ def rectangularWall(self, x, y, edges="eeee",

if 7 not in ignore_widths:
self.moveTo(edges[-1].spacing())
if 6 not in ignore_widths:
self.moveTo(0, edges[0].margin())
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]
Expand Down

0 comments on commit d6faf5b

Please sign in to comment.