mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-14 10:20:45 +02:00
IDE: package editor: fixed crash when renaming a file
git-svn-id: trunk@21602 -
This commit is contained in:
parent
2291788a7c
commit
477240cd60
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user