summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2006-05-09 20:58:40 +0000
committerSilenio Quarti <silenio>2006-05-09 20:58:40 +0000
commiteca1826649515160e2b22483d995e6487fb195aa (patch)
treeda8856363001109154a4f2685fbb96b9022721d5 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java
parentf0c958ea4ce48b85eb23b9e6268663fdaa99c155 (diff)
downloadeclipse.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
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java2
1 files changed, 1 insertions, 1 deletions
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;