bugfix
This commit is contained in:
parent
95c61ac068
commit
2d3d4c5f95
1 changed files with 3 additions and 0 deletions
|
@ -1609,6 +1609,9 @@ proc fillShapes(
|
||||||
pathHeight = min(image.height, (bounds.y + bounds.h).int)
|
pathHeight = min(image.height, (bounds.y + bounds.h).int)
|
||||||
partitioning = partitionSegments(segments, startY, pathHeight - startY)
|
partitioning = partitionSegments(segments, startY, pathHeight - startY)
|
||||||
|
|
||||||
|
if pathWidth == 0:
|
||||||
|
return
|
||||||
|
|
||||||
var
|
var
|
||||||
coverages = newSeq[uint8](pathWidth)
|
coverages = newSeq[uint8](pathWidth)
|
||||||
hits = newSeq[(float32, int16)](partitioning.maxEntryCount)
|
hits = newSeq[(float32, int16)](partitioning.maxEntryCount)
|
||||||
|
|
Loading…
Reference in a new issue