polygonWalls: don't error out on empty borders list

This commit is contained in:
Florian Festi 2023-02-12 17:43:20 +01:00
parent 1ba33c8192
commit 8b5fb877e7
1 changed files with 3 additions and 0 deletions

View File

@ -2720,6 +2720,9 @@ class Boxes:
@restore
def polygonWalls(self, borders, h, bottom="F", top="F", symmetrical=True):
if not borders:
return
bottom = self.edges.get(bottom, bottom)
top = self.edges.get(top, top)
t = self.thickness # XXX edge.margin()