rectangularHole(): clamp corner radius to available space

This commit is contained in:
Florian Festi 2018-12-08 12:42:25 +01:00
parent 8f03030c53
commit fd956d1f08
1 changed files with 1 additions and 0 deletions

View File

@ -1046,6 +1046,7 @@ class Boxes:
:param r: (Default value = 0) radius of the corners
"""
r = min(r, dx/2., dy/2.)
self.moveTo(x + r - dx / 2.0, y - dy / 2.0 + self.burn, 180)
for d in (dy, dx, dy, dx):
self.corner(-90, r)