From 15cbc7d285acdcd478551827346ba7e9eab85c7c Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Wed, 30 Mar 2016 20:52:21 +0200 Subject: [PATCH] Fix Boxes.hole() --- boxes/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/boxes/__init__.py b/boxes/__init__.py index a0f441e..a9c6bd1 100755 --- a/boxes/__init__.py +++ b/boxes/__init__.py @@ -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)