diff options
author | Silenio Quarti | 2006-05-09 20:58:40 +0000 |
---|---|---|
committer | Silenio Quarti | 2006-05-09 20:58:40 +0000 |
commit | eca1826649515160e2b22483d995e6487fb195aa (patch) | |
tree | da8856363001109154a4f2685fbb96b9022721d5 | |
parent | f0c958ea4ce48b85eb23b9e6268663fdaa99c155 (diff) | |
download | eclipse.platform.swt-eca1826649515160e2b22483d995e6487fb195aa.tar.gz eclipse.platform.swt-eca1826649515160e2b22483d995e6487fb195aa.tar.xz eclipse.platform.swt-eca1826649515160e2b22483d995e6487fb195aa.zip |
134353 - Table/Tree: Columns pack on table.clear for no reason with a lot of flashing
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java | 2 | ||||
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java index 2d3df34397..64e63ca012 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java @@ -1059,7 +1059,7 @@ public void setImage (int index, Image image) { * when the image is changed in the model. The fix is to force it to recalculate the width if * more space is required. */ - if ((parent.style & SWT.VIRTUAL) != 0) { + if ((parent.style & SWT.VIRTUAL) != 0 && parent.currentItem == null) { if (OS.GTK_VERSION >= OS.VERSION (2, 3, 2)) { if (image != null) { int /*long*/parentHandle = parent.handle; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java index b809f78530..cdc25a547d 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java @@ -1444,7 +1444,7 @@ public void setImage (int index, Image image) { * when the image is changed in the model. The fix is to force it to recalculate the width if * more space is required. */ - if ((parent.style & SWT.VIRTUAL) != 0) { + if ((parent.style & SWT.VIRTUAL) != 0 && parent.currentItem == null) { if (OS.GTK_VERSION >= OS.VERSION (2, 3, 2)) { if (image != null) { int /*long*/parentHandle = parent.handle; |