IDE: unit dependencies: fixed crash on refresh: bug #13501, from Alexander S. Klenin

git-svn-id: trunk@19559 -
This commit is contained in:
mattias 2009-04-21 15:56:55 +00:00
parent 4f1c322f14
commit 2d75d65468

View File

@ -284,7 +284,7 @@ var
begin
if Stage<>cdPostPaint then exit;
UnitNode:=TUnitNode(Node.Data);
if UnitNode.IsFirstImplementationNode then begin
if (UnitNode<>nil) and UnitNode.IsFirstImplementationNode then begin
NodeRect:=Node.DisplayRect(false);
NodeRect.Left:=Node.DisplayStateIconLeft;
with Node.TreeView.Canvas do begin