diff options
author | Lakshmi Shanmugam <lshanmugam> | 2010-08-05 07:30:43 +0000 |
---|---|---|
committer | Lakshmi Shanmugam <lshanmugam> | 2010-08-05 07:30:43 +0000 |
commit | 23531f1d86bcc98938a4e0b3a194b661def5d419 (patch) | |
tree | 223b66756f10f08725bcbbd1898213dea3fbabb6 | |
parent | a69534f46e60608a1e437bf5790b977888482759 (diff) | |
download | eclipse.platform.swt-23531f1d86bcc98938a4e0b3a194b661def5d419.tar.gz eclipse.platform.swt-23531f1d86bcc98938a4e0b3a194b661def5d419.tar.xz eclipse.platform.swt-23531f1d86bcc98938a4e0b3a194b661def5d419.zip |
Bug 320581-[GTK2.18] JVM crash when call Control.moveAbove(Control control)
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java index 8cdb4ab71c..a69add36cc 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java @@ -1107,6 +1107,7 @@ public void moveAbove (Control control) { if (control != null) { if (control.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT); if (parent != control.parent) return; + if (this == control) return; } setZOrder (control, true, true); } @@ -1136,6 +1137,7 @@ public void moveBelow (Control control) { if (control != null) { if (control.isDisposed ()) error(SWT.ERROR_INVALID_ARGUMENT); if (parent != control.parent) return; + if (this == control) return; } setZOrder (control, false, true); } |