mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 19:59:31 +02:00
TreeView: add a Nil pointer check
git-svn-id: trunk@34662 -
This commit is contained in:
parent
6a0b924a7b
commit
da787feb8d
@ -5556,8 +5556,8 @@ begin
|
||||
Items.ClearMultiSelection(True); // Now clears all multi-selections
|
||||
end
|
||||
else begin
|
||||
ANode := Selected;
|
||||
if not ANode.Visible then // Clear a single selection only if not visible
|
||||
ANode := Selected; // Clear a single selection only if not visible
|
||||
if Assigned(ANode) and not ANode.Visible then
|
||||
ANode.Selected:=False; // Selected := nil;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user