Fix division by zero in FlexEdge

This commit is contained in:
Florian Festi 2018-11-05 21:36:05 +01:00
parent 21172a592f
commit b7bd6306d1
1 changed files with 1 additions and 1 deletions

View File

@ -1834,7 +1834,7 @@ class FlexEdge(BaseEdge):
h += 2 * burn
lines = int(x // dist)
leftover = x - lines * dist
sections = int((h - connection) // width)
sections = max(int((h - connection) // width), 1)
sheight = ((h - connection) / sections) - connection
for i in range(1, lines):