diff --git a/libjava/ChangeLog b/libjava/ChangeLog index ab514f980bcf535eba5d8f6624687f6931816c80..9c1f1c0e92be4e8f60748fb616eba1b8af3b9eb0 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -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. diff --git a/libjava/java/awt/List.java b/libjava/java/awt/List.java index 19907c05caa06bbba7e68b8c85544ab4f3389a91..955d08fb1dc9a88ba226e3c708e2be93567aa053 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 (); }