X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fgraphics%2FPath.java;h=75572092b9d6cdb979d9d176886163c937a856c5;hp=7c0fd40164b2626e38b95f8c1a40421715bdce7c;hb=5f0b1c28e1c93b3fc14236fa9eb9742aa3304377;hpb=c8598d51fe71ce77d466c02b6fa264617be9335b diff --git a/src/org/ibex/graphics/Path.java b/src/org/ibex/graphics/Path.java index 7c0fd40..7557209 100644 --- a/src/org/ibex/graphics/Path.java +++ b/src/org/ibex/graphics/Path.java @@ -37,6 +37,12 @@ public class Path { static final byte TYPE_QUADRADIC = 4; public static Path parse(String s) { return Tokenizer.parse(s); } + + // FIXME: hack + private String toString; + private Path(String s) { this.toString = s; } + public String toString() { return toString; } + public static class Tokenizer { // FIXME: check array bounds exception for improperly terminated string String s; @@ -47,7 +53,7 @@ public class Path { public static Path parse(String s) { if (s == null) return null; Tokenizer t = new Tokenizer(s); - Path ret = new Path(); + Path ret = new Path(s); char last_command = 'M'; boolean first = true; while(t.hasMoreTokens()) {