Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorConrad Groth2017-11-12 13:19:41 -0500
committerNiraj Modi2017-11-14 08:04:19 -0500
commit10b170d938a52aa9095ae6e358b12471ed7ad944 (patch)
treeb088290875c44266ce2a9724c8ddc685e736bae6 /bundles/org.eclipse.swt
parent3663183c0194986687a8dc6d64b475f577e508e5 (diff)
downloadeclipse.platform.swt-10b170d938a52aa9095ae6e358b12471ed7ad944.tar.gz
eclipse.platform.swt-10b170d938a52aa9095ae6e358b12471ed7ad944.tar.xz
eclipse.platform.swt-10b170d938a52aa9095ae6e358b12471ed7ad944.zip
Bug 527103 - [Win32] Performance regression on Tree.setLinesVisible
Only invalidate the header if the handle is present, to avoid invalidating all windows. Change-Id: I2711240213fefc14fbebe82b13e0a54d35f8280b Signed-off-by: Conrad Groth <info@conrad-groth.de>
Diffstat (limited to 'bundles/org.eclipse.swt')
-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