SVG import fix

This commit is contained in:
honfika@gmail.com
2016-09-25 15:09:59 +02:00
parent 1c918301bd
commit 8d708835d8

View File

@@ -78,27 +78,33 @@ public class SvgPathReader {
int startPos = pos;
readWhiteSpaces();
char ch = str.charAt(pos);
char ch;
ch = str.charAt(pos);
if (ch == '-') {
pos++;
}
digitSequence();
ch = str.charAt(pos);
if (ch == '.') {
pos++;
digitSequence();
if (hasNext()) {
ch = str.charAt(pos);
if (ch == '.') {
pos++;
digitSequence();
}
}
ch = str.charAt(pos);
if (ch == 'e') {
pos++;
if (hasNext()) {
ch = str.charAt(pos);
if (ch == '-') {
if (ch == 'e') {
pos++;
}
ch = str.charAt(pos);
if (ch == '-') {
pos++;
}
digitSequence();
digitSequence();
}
}
boolean ok = false;