dHole: Prevent division by zero
This commit is contained in:
parent
7943fa2390
commit
0394d418c1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue