mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 19:40:54 +02:00
codetools: safety check
git-svn-id: trunk@32459 -
This commit is contained in:
parent
09c6d11771
commit
e59acfda40
@ -1563,7 +1563,7 @@ begin
|
|||||||
NewTool:=Params.NewCodeTool;
|
NewTool:=Params.NewCodeTool;
|
||||||
NewPos:=Params.NewPos;
|
NewPos:=Params.NewPos;
|
||||||
NewTopLine:=Params.NewTopLine;
|
NewTopLine:=Params.NewTopLine;
|
||||||
if NewPos.Code=nil then begin
|
if (NewPos.Code=nil) or (NewNode=nil) then begin
|
||||||
if Params.IdentifierTool.IsPCharInSrc(Params.Identifier) then
|
if Params.IdentifierTool.IsPCharInSrc(Params.Identifier) then
|
||||||
Params.IdentifierTool.MoveCursorToCleanPos(Params.Identifier)
|
Params.IdentifierTool.MoveCursorToCleanPos(Params.Identifier)
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user