From 0fa2a9fe6b3fde90bc80fa58107ad9f9bffbf862 Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Sat, 19 Jun 2021 00:25:42 -0500 Subject: [PATCH] better this way --- src/pixie/paths.nim | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/pixie/paths.nim b/src/pixie/paths.nim index 124dd5b..e3f8bd3 100644 --- a/src/pixie/paths.nim +++ b/src/pixie/paths.nim @@ -1137,12 +1137,10 @@ iterator walk( # between zero and nonzero (or the last hit) count += winding continue - if at <= 0: - count += winding - continue - if shouldFill(windingRule, count): - yield (prevAt, at, count) - prevAt = at + if at > 0: + if shouldFill(windingRule, count): + yield (prevAt, at, count) + prevAt = at count += winding when defined(pixieLeakCheck):