View.setParent() should also set the parent of the child views to null.
We have mistakenly set it to this.

2006-02-21  Roman Kennke  <[EMAIL PROTECTED]>

        * javax/swing/text/View.java
        (setParent): Set child parent to null when disconnecting
        the view from the View hierarchy.

/Roman
Index: javax/swing/text/View.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/text/View.java,v
retrieving revision 1.28
diff -u -r1.28 View.java
--- javax/swing/text/View.java	13 Feb 2006 14:15:43 -0000	1.28
+++ javax/swing/text/View.java	21 Feb 2006 15:38:59 -0000
@@ -91,7 +91,7 @@
       {
         int numChildren = getViewCount();
         for (int i = 0; i < numChildren; i++)
-          getView(i).setParent(this);
+          getView(i).setParent(null);
       }
 
     this.parent = parent;

Reply via email to