Commit 7950ed56 by Tom Tromey Committed by Tom Tromey

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
parent 6bb28965
2002-01-29 Tom Tromey <tromey@redhat.com> 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 * java/awt/GridLayout.java (layoutContainer): Use number of rows
to compute height of each cell, and number of columns to compute to compute height of each cell, and number of columns to compute
width of each cell. width of each cell.
......
...@@ -858,7 +858,7 @@ deselect(int index) ...@@ -858,7 +858,7 @@ deselect(int index)
public void public void
addNotify() addNotify()
{ {
if (peer != null) if (peer == null)
peer = getToolkit ().createList (this); peer = getToolkit ().createList (this);
super.addNotify (); super.addNotify ();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment