Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLakshmi Shanmugam2019-03-01 10:23:37 +0000
committerLakshmi Shanmugam2019-03-12 07:49:47 +0000
commit1185e749e06092bd4c634b07427b7332e8eb6f5d (patch)
tree054a82ca7f2be4caa2b883c9382660c796472b33
parentd2e1c278b3b8f03f5e3ed205020f4e5296db7560 (diff)
downloadeclipse.platform.swt-1185e749e06092bd4c634b07427b7332e8eb6f5d.tar.gz
eclipse.platform.swt-1185e749e06092bd4c634b07427b7332e8eb6f5d.tar.xz
eclipse.platform.swt-1185e749e06092bd4c634b07427b7332e8eb6f5d.zip
Bug 543704: SWT Table does not release all relevant items when input has
changed Fix the condition in for-loop to check for the end index instead of length. Change-Id: I4b9a63d0bada005f5453616ea56c4aa0dc7236e5
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java
index f1fb810b7b..8b22fe318f 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java
@@ -2233,7 +2233,7 @@ public void remove (int start, int end) {
removeAll ();
} else {
int length = end - start + 1;
- for (int i=start; i<length; i++) {
+ for (int i=start; i<=end; i++) {
TableItem item = items [i];
if (item != null) item.release (false);
}

Back to the top