diff --git a/src/nanosvg.h b/src/nanosvg.h index 5d8bafb..38f32f5 100644 --- a/src/nanosvg.h +++ b/src/nanosvg.h @@ -910,7 +910,7 @@ static const char* nsvg__getNextPathItem(const char* s, char* it) // Skip white spaces and commas while (*s && (nsvg__isspace(*s) || *s == ',')) s++; if (!*s) return s; - if (*s == '-' || *s == '+' || nsvg__isdigit(*s)) { + if (*s == '-' || *s == '+' || *s == '.' || nsvg__isdigit(*s)) { // sign if (*s == '-' || *s == '+') { if (i < 63) it[i++] = *s;