2003/11/27 05:05:09
[org.ibex.core.git] / src / org / xwt / Surface.java
index fb9585a..ac2a837 100644 (file)
@@ -298,7 +298,7 @@ public abstract class Surface extends PixelBuffer {
         this.root = root;
         Surface old = fromBox(root);
         if (old != null) old.dispose(false);
-        else root.remove();
+        else root.put("thisbox", null);
 
         // make sure the root is properly sized
         do { abort = false; root.reflow(root.width, root.height); } while(abort);