fix svg e notation problem (bug #1408)

This commit is contained in:
benfry
2009-12-04 23:18:53 +00:00
parent e79df81a31
commit 342a945e04
2 changed files with 9 additions and 2 deletions
+5 -1
View File
@@ -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
View File
@@ -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