mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 10:19:22 +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
|
ANode:=FilesTreeView.Items.GetFirstNode
|
||||||
else
|
else
|
||||||
ANode:=ANode.GetFirstChild;
|
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;
|
if ANode=nil then break;
|
||||||
ASelection.Delete(0);
|
ASelection.Delete(0);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user