Fix division by zero in FlexEdge
This commit is contained in:
parent
21172a592f
commit
b7bd6306d1
|
@ -1834,7 +1834,7 @@ class FlexEdge(BaseEdge):
|
||||||
h += 2 * burn
|
h += 2 * burn
|
||||||
lines = int(x // dist)
|
lines = int(x // dist)
|
||||||
leftover = x - lines * dist
|
leftover = x - lines * dist
|
||||||
sections = int((h - connection) // width)
|
sections = max(int((h - connection) // width), 1)
|
||||||
sheight = ((h - connection) / sections) - connection
|
sheight = ((h - connection) / sections) - connection
|
||||||
|
|
||||||
for i in range(1, lines):
|
for i in range(1, lines):
|
||||||
|
|
Loading…
Reference in New Issue