summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed <ggayed>2009-02-09 20:34:02 +0000
committerGrant Gayed <ggayed>2009-02-09 20:34:02 +0000
commitd32c7f005e3cbd08f6bdaefa242523e5504eb318 (patch)
tree5dff12325e24c97f9c6cca1a2712854144184488
parent4d57a207c4c5b5b183eda12d27fb28f92029c289 (diff)
downloadeclipse.platform.swt-d32c7f005e3cbd08f6bdaefa242523e5504eb318.tar.gz
eclipse.platform.swt-d32c7f005e3cbd08f6bdaefa242523e5504eb318.tar.xz
eclipse.platform.swt-d32c7f005e3cbd08f6bdaefa242523e5504eb318.zip
*** empty log message ***
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java1
1 files changed, 1 insertions, 0 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 46fcaf31f0..926346779a 100755
--- 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
@@ -550,6 +550,7 @@ void createItem (TableColumn column, int index) {
void createItem (TableItem item, int index) {
if (!(0 <= index && index <= itemCount)) error (SWT.ERROR_INVALID_RANGE);
+ if (index != itemCount) fixSelection (index, true);
if (itemCount == items.length) {
/* Grow the array faster when redraw is off */
int length = drawCount == 0 ? items.length + 4 : Math.max (4, items.length * 3 / 2);