From f5b57c1876a503b1b7d92b0f8850c45b73db2214 Mon Sep 17 00:00:00 2001 From: Mikko Mononen Date: Thu, 2 Jan 2014 20:28:15 +0200 Subject: [PATCH] Fox for Issue #2 - reset current point only at the start of path command --- src/nanosvg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nanosvg.h b/src/nanosvg.h index 35057af..d27a209 100644 --- a/src/nanosvg.h +++ b/src/nanosvg.h @@ -1384,6 +1384,7 @@ static void nsvg__parsePath(struct NSVGParser* p, const char** attr) s = attr[i + 1]; nsvg__resetPath(p); + cpx = 0; cpy = 0; closedFlag = 0; nargs = 0; @@ -1450,7 +1451,6 @@ static void nsvg__parsePath(struct NSVGParser* p, const char** attr) nsvg__resetPath(p); closedFlag = 0; nargs = 0; - cpx = 0; cpy = 0; } else if (cmd == 'Z' || cmd == 'z') { closedFlag = 1; // Commit path.