TreeView: add a Nil pointer check

git-svn-id: trunk@34662 -
This commit is contained in:
juha 2012-01-08 12:03:55 +00:00
parent 6a0b924a7b
commit da787feb8d

View File

@ -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;