Fix for issue #20
- yet another fix for path parsing, allow number to start with .
This commit is contained in:
parent
cd0a2029fa
commit
ac375ba28d
@ -910,7 +910,7 @@ static const char* nsvg__getNextPathItem(const char* s, char* it)
|
|||||||
// Skip white spaces and commas
|
// Skip white spaces and commas
|
||||||
while (*s && (nsvg__isspace(*s) || *s == ',')) s++;
|
while (*s && (nsvg__isspace(*s) || *s == ',')) s++;
|
||||||
if (!*s) return s;
|
if (!*s) return s;
|
||||||
if (*s == '-' || *s == '+' || nsvg__isdigit(*s)) {
|
if (*s == '-' || *s == '+' || *s == '.' || nsvg__isdigit(*s)) {
|
||||||
// sign
|
// sign
|
||||||
if (*s == '-' || *s == '+') {
|
if (*s == '-' || *s == '+') {
|
||||||
if (i < 63) it[i++] = *s;
|
if (i < 63) it[i++] = *s;
|
||||||
|
Loading…
Reference in New Issue
Block a user