From 04b789e5d69357138a6e352fd248bd1442dbab59 Mon Sep 17 00:00:00 2001 From: SaumyaKarnwal Date: Thu, 28 Dec 2023 19:00:11 +0530 Subject: [PATCH] =?UTF-8?q?fixed=20issue#750=20=C2=96ArrayIndexOutOfBounds?= =?UTF-8?q?Exception?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/src/processing/core/PShapeSVG.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/processing/core/PShapeSVG.java b/core/src/processing/core/PShapeSVG.java index e85389f02..5c0754a7e 100644 --- a/core/src/processing/core/PShapeSVG.java +++ b/core/src/processing/core/PShapeSVG.java @@ -543,7 +543,7 @@ protected void parsePath() { if (c == '.' && !isOnDecimal) { isOnDecimal = true; } - else if (isOnDecimal && (c < '0' || c > '9')) { + else if (isOnDecimal && (c < '0' || c > '9') && c!='e' && c!='-') { pathBuffer.append("|"); isOnDecimal = c == '.'; }