X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FBox.java;fp=src%2Forg%2Fxwt%2FBox.java;h=0e4a30b357979adc728ac310ab375cad6d4c4300;hb=cc7188a01f70a4f5e6eb12a4f72e3b7d3e897b27;hp=98fb49efe9d687493213a537275fe9cab18aa622;hpb=c730780164e644077bb9cb3906a6519824a67de4;p=org.ibex.core.git diff --git a/src/org/xwt/Box.java b/src/org/xwt/Box.java index 98fb49e..0e4a30b 100644 --- a/src/org/xwt/Box.java +++ b/src/org/xwt/Box.java @@ -172,6 +172,8 @@ public final class Box extends JSScope implements Scheduler.Task { /** invoked when a resource needed to render ourselves finishes loading */ public void perform() throws JSExn { + + // FIXME; we can't assume that just because we were performed the image is loaded. // as external events have occured, check the state of box if (texture != null) { if (texture.isLoaded) { minwidth = texture.width; minheight = texture.height; } @@ -621,7 +623,6 @@ public final class Box extends JSScope implements Scheduler.Task { return; } if (!(value instanceof Res)) return; - texture = Picture.load((Res)value, this); }