Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 640d09d

Browse files
committed
Synchonize with Tk trunk [44d8b4d9]: svg interpretation patch, big file bug protection replaced by androwish solution
1 parent ffcdf7f commit 640d09d

File tree

3 files changed

+670
-521
lines changed

3 files changed

+670
-521
lines changed

generic/nanosvg.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,8 +1547,8 @@ static int nsvg__isCoordinate(const char* s)
15471547
/* optional sign */
15481548
if (*s == '-' || *s == '+')
15491549
s++;
1550-
/* must have at least one digit */
1551-
return nsvg__isdigit(*s);
1550+
/* must have at least one digit, or start by a dot */
1551+
return (nsvg__isdigit(*s) || *s == '.');
15521552
}
15531553

15541554
static NSVGcoordinate nsvg__parseCoordinateRaw(const char* str)

0 commit comments

Comments
 (0)