From 45eb9f8bcce21066719ba71f91906a34e735f9e7 Mon Sep 17 00:00:00 2001 From: fvogelnew1 <42586262+fvogelnew1@users.noreply.github.com> Date: Thu, 19 Nov 2020 22:20:57 +0100 Subject: [PATCH] Update nanosvg.h Fix https://github.com/memononen/nanosvg/issues/188 --- src/nanosvg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nanosvg.h b/src/nanosvg.h index a110a00..4c03ee5 100644 --- a/src/nanosvg.h +++ b/src/nanosvg.h @@ -1473,8 +1473,8 @@ static int nsvg__isCoordinate(const char* s) // optional sign if (*s == '-' || *s == '+') s++; - // must have at least one digit - return nsvg__isdigit(*s); + // must have at least one digit, or start by a dot + return (nsvg__isdigit(*s) || *s == '.'); } static NSVGcoordinate nsvg__parseCoordinateRaw(const char* str)