classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: Fix ScrollPane.addNotify()


From: Mark Wielaard
Subject: [cp-patches] FYI: Fix ScrollPane.addNotify()
Date: Thu, 10 Nov 2005 18:41:19 +0100

Hi,

This fixes a bug pointed out by the Mysaifu JVM author. It also makes
the "Stop Software Hoarders Use GNU!" text visible again in our AWT
Demo.

2005-10-10  Mark Wielaard  <address@hidden>

    Fixes bug #24731 reported by address@hidden
    * java/awt/ScrollPane.java (addNotify): Return immediately when peer
    already set.

Committed,

Mark

Index: java/awt/ScrollPane.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/ScrollPane.java,v
retrieving revision 1.25
diff -u -r1.25 ScrollPane.java
--- java/awt/ScrollPane.java    20 Sep 2005 01:05:28 -0000      1.25
+++ java/awt/ScrollPane.java    10 Nov 2005 17:40:32 -0000
@@ -401,7 +401,7 @@
 public void
 addNotify()
 {
-  if (!isDisplayable ())
+  if (peer != null)
     return;
 
   setPeer((ComponentPeer)getToolkit().createScrollPane(this));

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]