Skip to content

Commit 9ef40ba

Browse files
committed
allow . to start a number in svg
1 parent 9763b55 commit 9ef40ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/processing/core/PShapeSVG.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,6 @@ protected void parsePath() {
566566
int i = 0;
567567

568568
char implicitCommand = '\0';
569-
// char prevCommand = '\0';
570569
boolean prevCurve = false;
571570
float ctrlX, ctrlY;
572571
// store values for closepath so that relative coords work properly
@@ -575,7 +574,7 @@ protected void parsePath() {
575574

576575
while (i < pathTokens.length) {
577576
char c = pathTokens[i].charAt(0);
578-
if (((c >= '0' && c <= '9') || (c == '-')) && implicitCommand != '\0') {
577+
if (((c >= '0' && c <= '9') || (c == '-') || (c == '.')) && implicitCommand != '\0') {
579578
c = implicitCommand;
580579
i--;
581580
} else {

core/todo.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
1284 (4.0b9)
2+
X allow . to start a number in SVG paths
23

34

45
_ concurrent StringDict et al

0 commit comments

Comments
 (0)