Fix for issue #20

- yet another fix for path parsing, allow number to start with .
This commit is contained in:
Mikko Mononen 2014-11-03 19:00:22 +02:00
parent cd0a2029fa
commit ac375ba28d

View File

@ -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;