Fix Boxes.hole()

This commit is contained in:
Florian Festi 2016-03-30 20:52:21 +02:00
parent b59b71fab0
commit 15cbc7d285
1 changed files with 3 additions and 3 deletions

View File

@ -631,9 +631,9 @@ class Boxes:
:param r: radius
"""
radius -= self.burn
if radius < 0:
radius = 1E-9
r -= self.burn
if r < 0:
r = 1E-9
self.moveTo(x+r, y)
self.ctx.arc(-r, 0, r, 0, 2*math.pi)