Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Northover2001-09-11 13:41:23 +0000
committerSteve Northover2001-09-11 13:41:23 +0000
commit79227b5a49c00b963ad602edd42ff8b19e607168 (patch)
tree635342279fb91301d857edcc7331cd13d192c159 /bundles
parent480d82b9d8b93f2a0d871039fe5adcaaa45ec044 (diff)
downloadeclipse.platform.swt-79227b5a49c00b963ad602edd42ff8b19e607168.tar.gz
eclipse.platform.swt-79227b5a49c00b963ad602edd42ff8b19e607168.tar.xz
eclipse.platform.swt-79227b5a49c00b963ad602edd42ff8b19e607168.zip
*** empty log message ***
Diffstat (limited to 'bundles')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java
index 316c114574..1c13672d1d 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java
@@ -1118,10 +1118,10 @@ public void moveBelow (Control control) {
checkWidget ();
int hwndAfter = OS.HWND_BOTTOM;
if (control != null) {
- if (control.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);
+ if (control.isDisposed ()) error(SWT.ERROR_INVALID_ARGUMENT);
hwndAfter = control.handle;
}
- if (hwndAfter == 0) return;
+ if (hwndAfter == 0 || hwndAfter == handle) return;
int flags = OS.SWP_NOSIZE | OS.SWP_NOMOVE | OS.SWP_NOACTIVATE;
OS.SetWindowPos (handle, hwndAfter, 0, 0, 0, 0, flags);
}

Back to the top