From 7950ed567cc12db99e44c3fbbd908431f592e6b7 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 30 Jan 2002 02:47:48 +0000 Subject: 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 --- libjava/java/awt/List.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libjava/java') 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 (); } -- cgit v1.1