From: Tom Tromey Date: Wed, 30 Jan 2002 02:47:48 +0000 (+0000) Subject: List.java (addNotify): Correctly check to see if peer does not exist. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7950ed567cc12db99e44c3fbbd908431f592e6b7;p=gcc.git 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 --- 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 (); }