* java/awt/List.java (addNotify): Correctly check to see if peer
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Jan 2002 02:47:48 +0000 (02:47 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Jan 2002 02:47:48 +0000 (02:47 +0000)
does not exist.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49335 138bc75d-0d04-0410-961f-82ee72b054a4

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

index ab514f9..9c1f1c0 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 19907c0..955d08f 100644 (file)
@@ -858,7 +858,7 @@ deselect(int index)
 public void
 addNotify()
 {
-  if (peer != null)
+  if (peer == null)
     peer = getToolkit ().createList (this);
   super.addNotify ();
 }