Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2001-09-13 16:52:55 +0000
committerSilenio Quarti2001-09-13 16:52:55 +0000
commite25fc97ab6541036c5892d890b6cb26608e5ffdd (patch)
treecb34553ec5dcac72650229b647b886a463901b52 /bundles
parent3610705d81fb09182342f81d62838474b43fb1b5 (diff)
downloadeclipse.platform.swt-e25fc97ab6541036c5892d890b6cb26608e5ffdd.tar.gz
eclipse.platform.swt-e25fc97ab6541036c5892d890b6cb26608e5ffdd.tar.xz
eclipse.platform.swt-e25fc97ab6541036c5892d890b6cb26608e5ffdd.zip
fix for moveBelow/moveAbove
Diffstat (limited to 'bundles')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Control.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Control.java
index 1373ae5d74..70f7b949e2 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Control.java
@@ -1051,7 +1051,7 @@ boolean mnemonicMatch (char key) {
*/
public void moveAbove (Control control) {
checkWidget();
- if (control.isDisposed ()) error(SWT.ERROR_INVALID_ARGUMENT);
+ if (control != null && control.isDisposed ()) error(SWT.ERROR_INVALID_ARGUMENT);
setZOrder (control, true);
}
/**
@@ -1073,7 +1073,7 @@ public void moveAbove (Control control) {
*/
public void moveBelow (Control control) {
checkWidget();
- if (control.isDisposed ()) error(SWT.ERROR_INVALID_ARGUMENT);
+ if (control != null && control.isDisposed ()) error(SWT.ERROR_INVALID_ARGUMENT);
setZOrder (control, false);
}
/**

Back to the top