From 216770d05a25397708ea3946307519f45a8dea70 Mon Sep 17 00:00:00 2001 From: blikblum Date: Thu, 19 Feb 2009 00:54:35 +0000 Subject: [PATCH] * Dont invalidate the tree in TVTHeader.SetHeight during loading git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@714 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/virtualtreeview-new/VirtualTrees.pas | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/virtualtreeview-new/VirtualTrees.pas b/components/virtualtreeview-new/VirtualTrees.pas index c6b7da5cf..f8068ed6a 100644 --- a/components/virtualtreeview-new/VirtualTrees.pas +++ b/components/virtualtreeview-new/VirtualTrees.pas @@ -9737,9 +9737,11 @@ begin begin FHeight := Value; if not (csLoading in Treeview.ComponentState) then + begin RecalculateHeader; - Treeview.Invalidate; - UpdateWindow(Treeview.Handle); + Treeview.Invalidate; + UpdateWindow(Treeview.Handle); + end; end; end;