diff options
author | Conrad Groth | 2017-11-12 18:19:41 +0000 |
---|---|---|
committer | Niraj Modi | 2017-11-15 11:28:24 +0000 |
commit | 3158cee8fcdcf63868233c52d34e491637e77634 (patch) | |
tree | 785d7827bcf686e7cd6a8cb510361259e6068439 | |
parent | 37203efc374b7f70bb8e900553e043279468e01f (diff) | |
download | eclipse.platform.swt-3158cee8fcdcf63868233c52d34e491637e77634.tar.gz eclipse.platform.swt-3158cee8fcdcf63868233c52d34e491637e77634.tar.xz eclipse.platform.swt-3158cee8fcdcf63868233c52d34e491637e77634.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>
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java | 2 |
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 dba3101232..39585c24e9 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 @@ -4326,7 +4326,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 |