From 2d3d4c5f951dc50b8e246262596dfbc292d8360a Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Sun, 2 Jan 2022 17:11:55 -0600 Subject: [PATCH] bugfix --- src/pixie/paths.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pixie/paths.nim b/src/pixie/paths.nim index 34b745b..361dcc5 100644 --- a/src/pixie/paths.nim +++ b/src/pixie/paths.nim @@ -1609,6 +1609,9 @@ proc fillShapes( pathHeight = min(image.height, (bounds.y + bounds.h).int) partitioning = partitionSegments(segments, startY, pathHeight - startY) + if pathWidth == 0: + return + var coverages = newSeq[uint8](pathWidth) hits = newSeq[(float32, int16)](partitioning.maxEntryCount)