X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fcore%2FBox.java;h=0e95a7e2f1db531ddf117f5c2b88c0d458f9a438;hp=2fb9fe633dd87ed0f7d602e9b97df2cbfce8124c;hb=5f0b1c28e1c93b3fc14236fa9eb9742aa3304377;hpb=c8598d51fe71ce77d466c02b6fa264617be9335b diff --git a/src/org/ibex/core/Box.java b/src/org/ibex/core/Box.java index 2fb9fe6..0e95a7e 100644 --- a/src/org/ibex/core/Box.java +++ b/src/org/ibex/core/Box.java @@ -468,7 +468,13 @@ public final class Box extends JSScope implements Task { case "indexof": return METHOD; case "distanceto": return METHOD; case "text": return text; - case "path": throw new JSExn("cannot read from the path property"); + case "path": + if (path != null) return path.toString(); + if (text == null) return null; + if (font == null) return null; + String ret = ""; + for(int i=0; i