summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Composite.java
diff options
context:
space:
mode:
authorSteve Northover <steve>2001-11-15 14:10:47 +0000
committerSteve Northover <steve>2001-11-15 14:10:47 +0000
commita6baca0c93ee7535e1500c50336143cc4b7239f0 (patch)
tree4f353a103dcfd8aa4534853b31a445234a524fe4 /bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Composite.java
parent71383ddf70997eb356fc8596e615d7524d8c3273 (diff)
downloadeclipse.platform.swt-a6baca0c93ee7535e1500c50336143cc4b7239f0.tar.gz
eclipse.platform.swt-a6baca0c93ee7535e1500c50336143cc4b7239f0.tar.xz
eclipse.platform.swt-a6baca0c93ee7535e1500c50336143cc4b7239f0.zip
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Composite.java')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Composite.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Composite.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Composite.java
index b5eddcddc8..e0880f8a49 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Composite.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Composite.java
@@ -569,11 +569,12 @@ public void setTabList (Control [] tabList) {
Control control = tabList [i];
if (control == null) error (SWT.ERROR_INVALID_ARGUMENT);
if (control.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);
- Shell shell = control.getShell ();
- while (control != shell && control != this) {
- control = control.parent;
- }
- if (control != this) error (SWT.ERROR_INVALID_PARENT);
+// Shell shell = control.getShell ();
+// while (control != shell && control != this) {
+// control = control.parent;
+// }
+// if (control != this) error (SWT.ERROR_INVALID_PARENT);
+ if (control.parent != this) error (SWT.ERROR_INVALID_PARENT);
}
Control [] children = _getChildren ();
for (int i=0; i<children.length; i++) {