List.java (addNotify): Correctly check to see if peer does not exist.
authorTom Tromey <tromey@redhat.com>
Wed, 30 Jan 2002 02:47:48 +0000 (02:47 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Wed, 30 Jan 2002 02:47:48 +0000 (02:47 +0000)
* java/awt/List.java (addNotify): Correctly check to see if peer
does not exist.

From-SVN: r49335

libjava/ChangeLog
libjava/java/awt/List.java

index ab514f980bcf535eba5d8f6624687f6931816c80..9c1f1c0e92be4e8f60748fb616eba1b8af3b9eb0 100644 (file)
@@ -1,5 +1,8 @@
 2002-01-29  Tom Tromey  <tromey@redhat.com>
 
+       * java/awt/List.java (addNotify): Correctly check to see if peer
+       does not exist.
+
        * java/awt/GridLayout.java (layoutContainer): Use number of rows
        to compute height of each cell, and number of columns to compute
        width of each cell.
index 19907c05caa06bbba7e68b8c85544ab4f3389a91..955d08fb1dc9a88ba226e3c708e2be93567aa053 100644 (file)
@@ -858,7 +858,7 @@ deselect(int index)
 public void
 addNotify()
 {
-  if (peer != null)
+  if (peer == null)
     peer = getToolkit ().createList (this);
   super.addNotify ();
 }