From: megacz Date: Fri, 30 Jan 2004 06:47:06 +0000 (+0000) Subject: 2002/05/08 01:48:04 X-Git-Tag: RC3~1754 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=3838c8c03675ff715b7cc85c0a86cabce0382354;p=org.ibex.core.git 2002/05/08 01:48:04 darcs-hash:20040130064706-2ba56-233a79c7d7db70a88102bf0041a8a3344279f919.gz --- diff --git a/CHANGES b/CHANGES index 639d2e8..4f670a0 100644 --- a/CHANGES +++ b/CHANGES @@ -129,6 +129,8 @@ 06-Apr megacz Box.java: fixed a bug relating to shrink +07-Apr megacz Box.java: thisbox[n] = null wasn't doing anything + diff --git a/src/org/xwt/Box.java b/src/org/xwt/Box.java index c1dfd86..dd367ec 100644 --- a/src/org/xwt/Box.java +++ b/src/org/xwt/Box.java @@ -858,7 +858,7 @@ public final class Box extends JSObject { if ((color & 0xFF000000) != 0xFF000000) { // if the color is null, we have to be very careful about drawing the corners - if (Log.verbose) Log.log(this, "WARNING: (color == null && border != null) on box with border " + imageToNameMap.get(border[4])); + //if (Log.verbose) Log.log(this, "WARNING: (color == null && border != null) on box with border " + imageToNameMap.get(border[4])); // upper left corner buf.drawPicture(border[4], @@ -1004,7 +1004,7 @@ public final class Box extends JSObject { */ public void put(int i, Scriptable start, Object value) { if (value == null) { - if (i > 0 && i < numChildren()) getChild(i).remove(); + if (i >= 0 && i < numChildren()) getChild(i).remove(); return; } if (value instanceof RootProxy) {