From 79227b5a49c00b963ad602edd42ff8b19e607168 Mon Sep 17 00:00:00 2001 From: Steve Northover Date: Tue, 11 Sep 2001 13:41:23 +0000 Subject: *** empty log message *** --- .../Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bundles') 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); } -- cgit v1.2.3