Fix for issue #20

- yet another fix for path parsing, allow number to start with .
master
Mikko Mononen 2014-11-03 19:00:22 +02:00
parent cd0a2029fa
commit ac375ba28d
1 changed files with 1 additions and 1 deletions

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;