dHole: Prevent division by zero

This commit is contained in:
Florian Festi 2020-02-01 15:30:18 +01:00
parent 7943fa2390
commit 0394d418c1
1 changed files with 1 additions and 1 deletions

View File

@ -1138,7 +1138,7 @@ class Boxes:
if w is None:
w = 2.0 * r * rel_w
w -= r
if r < 0.0:
if r <= 0.0:
return
if abs(w) > r:
return self.hole(x, y, r)