From: tromey Date: Wed, 30 Jan 2002 02:47:48 +0000 (+0000) Subject: * java/awt/List.java (addNotify): Correctly check to see if peer X-Git-Tag: upstream/4.9.2~89039 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=207fe3095dce8e7a0ead12e578e76ee7e5cfccb1;p=platform%2Fupstream%2Flinaro-gcc.git * 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 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index ab514f9..9c1f1c0 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 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 (); }