From 207fe3095dce8e7a0ead12e578e76ee7e5cfccb1 Mon Sep 17 00:00:00 2001 From: tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Wed, 30 Jan 2002 02:47:48 +0000 Subject: [PATCH] * java/awt/List.java (addNotify): Correctly check to see if peer does not exist. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49335 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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 ab514f980bcf..9c1f1c0e92be 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 19907c05caa0..955d08fb1dc9 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 (); } -- GitLab