~martijnbraam/turbocase

c407b02fd2e0c20a90c20f41bf62becef3e430c9 — Martijn Braam a month ago 877e865
Fix crash on circular hole
1 files changed, 3 insertions(+), 1 deletions(-)

M turbocase/kicad.py
M turbocase/kicad.py => turbocase/kicad.py +3 -1
@@ 236,7 236,9 @@ class Shape:
    def bounds(self):
        if self._bounds is not None:
            return self._bounds

        if self.is_circle:
            c = self.point
            return c[0] - self.radius, c[0] + self.radius, c[1] - self.radius, c[1] + self.radius
        coords = self.path()
        min_x = coords[0][0]
        max_x = 0