diff --git a/core/src/processing/core/PImage.java b/core/src/processing/core/PImage.java index d2ac4e3b9..b170ef71d 100644 --- a/core/src/processing/core/PImage.java +++ b/core/src/processing/core/PImage.java @@ -1315,7 +1315,13 @@ protected void blurARGB(float r) { ri++; read += pixelWidth; } - pixels[x+yi] = (ca/sum)<<24 | (cr/sum)<<16 | (cg/sum)<<8 | (cb/sum); + + try { + pixels[x + yi] = (ca / sum) << 24 | (cr / sum) << 16 | (cg / sum) << 8 | (cb / sum); + } catch (ArithmeticException e) { + + } + } yi += pixelWidth; ymi += pixelWidth; 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 == '.'; }