mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
fix svg e notation problem (bug #1408)
This commit is contained in:
@@ -457,7 +457,11 @@ public class PShapeSVG extends PShape {
|
||||
separate = false;
|
||||
}
|
||||
if (c == '-' && !lastSeparate) {
|
||||
pathBuffer.append("|");
|
||||
// allow for 'e' notation in numbers, e.g. 2.10e-9
|
||||
// http://dev.processing.org/bugs/show_bug.cgi?id=1408
|
||||
if (i == 0 || pathDataChars[i-1] != 'e') {
|
||||
pathBuffer.append("|");
|
||||
}
|
||||
}
|
||||
if (c != ',') {
|
||||
pathBuffer.append(c); //"" + pathDataBuffer.charAt(i));
|
||||
|
||||
+4
-1
@@ -1,6 +1,9 @@
|
||||
0174 core (private)
|
||||
X no changes
|
||||
X svg paths that use 'e' (exponent) not handled properly
|
||||
X http://dev.processing.org/bugs/show_bug.cgi?id=1408
|
||||
|
||||
_ consider bringing back text/image using cache/names
|
||||
_ fonts might not be as bad
|
||||
|
||||
_ open up the pdf library more (philho)
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=1343
|
||||
|
||||
Reference in New Issue
Block a user