IDE: package editor: fixed crash when renaming a file

git-svn-id: trunk@21602 -
This commit is contained in:
mattias 2009-09-07 13:46:08 +00:00
parent 2291788a7c
commit 477240cd60

View File

@ -1849,7 +1849,8 @@ begin
ANode:=FilesTreeView.Items.GetFirstNode
else
ANode:=ANode.GetFirstChild;
while ANode.Text<>CurText do ANode:=ANode.GetNextSibling;
while (ANode<>nil) and (ANode.Text<>CurText) do
ANode:=ANode.GetNextSibling;
if ANode=nil then break;
ASelection.Delete(0);
end;