summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
diff options
context:
space:
mode:
authorSteve Northover <steve>2006-04-05 23:50:49 +0000
committerSteve Northover <steve>2006-04-05 23:50:49 +0000
commit83d3ab374a898bfbb7236d388aad8e16fcc8332d (patch)
treee690de4b10c7979a3d89c3027bbaef6858a660e8 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
parent14823104d6728f5cc71bdd3d209808d5a418e056 (diff)
downloadeclipse.platform.swt-83d3ab374a898bfbb7236d388aad8e16fcc8332d.tar.gz
eclipse.platform.swt-83d3ab374a898bfbb7236d388aad8e16fcc8332d.tar.xz
eclipse.platform.swt-83d3ab374a898bfbb7236d388aad8e16fcc8332d.zip
avoid indexOf() work when not virutal
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.java5
1 files changed, 3 insertions, 2 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 fd60b55292..6066f84cf0 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
@@ -593,12 +593,13 @@ void checkBuffered () {
}
boolean checkData (TableItem item, boolean redraw) {
+ if ((style & SWT.VIRTUAL) == 0) return true;
return checkData (item, indexOf (item), redraw);
}
boolean checkData (TableItem item, int index, boolean redraw) {
- if (item.cached) return true;
- if ((style & SWT.VIRTUAL) != 0) {
+ if ((style & SWT.VIRTUAL) == 0) return true;
+ if (!item.cached) {
item.cached = true;
Event event = new Event ();
event.item = item;