aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2002-01-30 02:47:48 +0000
committerTom Tromey <tromey@gcc.gnu.org>2002-01-30 02:47:48 +0000
commit7950ed567cc12db99e44c3fbbd908431f592e6b7 (patch)
treef07e1aa8137d0fdbbd9020fd0f68bdae89ea09d2 /libjava/java
parent6bb289655c9d5ef52bdd201010f97dd16cd7f091 (diff)
downloadgcc-7950ed567cc12db99e44c3fbbd908431f592e6b7.zip
gcc-7950ed567cc12db99e44c3fbbd908431f592e6b7.tar.gz
gcc-7950ed567cc12db99e44c3fbbd908431f592e6b7.tar.bz2
List.java (addNotify): Correctly check to see if peer does not exist.
* java/awt/List.java (addNotify): Correctly check to see if peer does not exist. From-SVN: r49335
Diffstat (limited to 'libjava/java')
-rw-r--r--libjava/java/awt/List.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/java/awt/List.java b/libjava/java/awt/List.java
index 19907c0..955d08f 100644
--- a/libjava/java/awt/List.java
+++ b/libjava/java/awt/List.java
@@ -858,7 +858,7 @@ deselect(int index)
public void
addNotify()
{
- if (peer != null)
+ if (peer == null)
peer = getToolkit ().createList (this);
super.addNotify ();
}