aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/awt/ScrollPane.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/awt/ScrollPane.java')
-rw-r--r--libjava/java/awt/ScrollPane.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/java/awt/ScrollPane.java b/libjava/java/awt/ScrollPane.java
index 176c46c..4ca8e70 100644
--- a/libjava/java/awt/ScrollPane.java
+++ b/libjava/java/awt/ScrollPane.java
@@ -343,7 +343,7 @@ setScrollPosition(int x, int y)
public void
addNotify()
{
- if (getPeer() == null)
+ if (!isDisplayable ())
return;
setPeer((ComponentPeer)getToolkit().createScrollPane(this));