From 7950ed567cc12db99e44c3fbbd908431f592e6b7 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 30 Jan 2002 02:47:48 +0000 Subject: [PATCH] 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/ChangeLog | 3 +++ libjava/java/awt/List.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index ab514f980bc..9c1f1c0e92b 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,5 +1,8 @@ 2002-01-29 Tom Tromey + * 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. diff --git a/libjava/java/awt/List.java b/libjava/java/awt/List.java index 19907c05caa..955d08fb1dc 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 (); } -- 2.30.2