diff options
author | Silenio Quarti <silenio> | 2004-11-04 17:19:06 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2004-11-04 17:19:06 +0000 |
commit | f005a6ef01f7f9eb465eac41016138ca9d030211 (patch) | |
tree | 9722fde80ca66cd351ca9bb27db13f31e7f9648a /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Decorations.java | |
parent | 526dae7c3586e32877e23110996b49676772ecd1 (diff) | |
download | eclipse.platform.swt-f005a6ef01f7f9eb465eac41016138ca9d030211.tar.gz eclipse.platform.swt-f005a6ef01f7f9eb465eac41016138ca9d030211.tar.xz eclipse.platform.swt-f005a6ef01f7f9eb465eac41016138ca9d030211.zip |
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Decorations.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Decorations.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Decorations.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Decorations.java index eaba84126f..a595a5defa 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Decorations.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Decorations.java @@ -350,7 +350,10 @@ public Image getImage () { */ public Image [] getImages () { checkWidget (); - return images; + if (images == null) return new Image [0]; + Image [] result = new Image [images.length]; + System.arraycopy (images, 0, result, 0, images.length); + return result; } /** |