diff --git a/src/pixie/paths.nim b/src/pixie/paths.nim index f0ed1f7..499df26 100644 --- a/src/pixie/paths.nim +++ b/src/pixie/paths.nim @@ -1180,7 +1180,7 @@ proc computeCoverages( winding = partitioning.partitions[partitionIndex][i][1] if segment.at.y <= scanline.a.y and segment.to.y >= scanline.a.y: var at: Vec2 - if scanline.intersects(segment, at) and segment.to != at: + if segment.to != at and scanline.intersects(segment, at): if numHits == hits.len: hits.setLen(hits.len * 2) hits[numHits] = (min(at.x, size.x), winding)