From a3888f65a10292b7986c6c45ddf5039d63ef6f71 Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Tue, 30 Oct 2012 11:58:23 +0000 Subject: fixes bug where if treeview.Selection was not explicitly set, we could make any selection. --- src/gui/fpg_tree.pas | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/gui/fpg_tree.pas b/src/gui/fpg_tree.pas index d247e66d..b41003fb 100644 --- a/src/gui/fpg_tree.pas +++ b/src/gui/fpg_tree.pas @@ -855,6 +855,7 @@ begin begin FRootNode := TfpgTreeNode.Create; FRootNode.FTree := self; + FRootNode.Collapsed := False; end; FRootNode.TextColor := clText1; FRootnode.SelTextColor := clSelectionText; -- cgit v1.2.3-70-g09d2