Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
index 0388f1cb00..d451f1a7a2 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
@@ -4306,7 +4306,7 @@ public void setLinesVisible (boolean show) {
linesVisible = show;
if (hwndParent == 0 && linesVisible) customDraw = true;
OS.InvalidateRect (handle, null, true);
- OS.InvalidateRect (hwndHeader, null, true);
+ if (hwndHeader != 0) OS.InvalidateRect (hwndHeader, null, true);
}
@Override

Back to the top