summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
diff options
context:
space:
mode:
authorSteve Northover <steve>2005-10-07 15:07:24 +0000
committerSteve Northover <steve>2005-10-07 15:07:24 +0000
commita9ad46d4b18027c3d376aefee18ec5c2b8a8c1da (patch)
tree5a5e4f0a17c447ac54f47d81bf287cc28cd17548 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
parentcd2a1834b88e797612b50791d589a561738f569c (diff)
downloadeclipse.platform.swt-a9ad46d4b18027c3d376aefee18ec5c2b8a8c1da.tar.gz
eclipse.platform.swt-a9ad46d4b18027c3d376aefee18ec5c2b8a8c1da.tar.xz
eclipse.platform.swt-a9ad46d4b18027c3d376aefee18ec5c2b8a8c1da.zip
really ensure that items are not created for non-virtual tables
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
index 76912e8fe3..11344e46b5 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
@@ -104,7 +104,7 @@ public Table (Composite parent, int style) {
}
TableItem _getItem (int index) {
- if ((style & SWT.VIRTUAL) != 0) return items [index];
+ if ((style & SWT.VIRTUAL) == 0) return items [index];
if (items [index] != null) return items [index];
return items [index] = new TableItem (this, SWT.NONE, -1, false);
}