From 8b5fb877e7bd1bce47b666d162a08f35fdc8dc41 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sun, 12 Feb 2023 17:43:20 +0100 Subject: [PATCH] polygonWalls: don't error out on empty borders list --- boxes/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boxes/__init__.py b/boxes/__init__.py index 81692e1..daf99d0 100755 --- a/boxes/__init__.py +++ b/boxes/__init__.py @@ -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()