mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 13:39:30 +02:00
codetools: fixed AV when searching the ancestor of an empty class declaration
git-svn-id: trunk@13487 -
This commit is contained in:
parent
612dfc2e29
commit
f8a6cc5969
@ -1202,7 +1202,9 @@ var CleanCursorPos: integer;
|
||||
BuildSubTreeForClass(ClassNode);
|
||||
CursorNode:=FindDeepestNodeAtPos(ClassNode,CleanCursorPos,true);
|
||||
if (CursorNode.Desc in [ctnClass,ctnClassInterface])
|
||||
and (CleanCursorPos<ClassNode.FirstChild.StartPos) then begin
|
||||
and ((ClassNode.FirstChild=nil)
|
||||
or (CleanCursorPos<ClassNode.FirstChild.StartPos))
|
||||
then begin
|
||||
// identifier is an ancestor/interface identifier
|
||||
CursorNode:=CursorNode.Parent;
|
||||
DirectSearch:=true;
|
||||
|
@ -4,11 +4,11 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: iputils:slongversion
|
||||
msgid "Version %.2f"
|
||||
msgstr ""
|
||||
|
||||
#: iputils:sshortversion
|
||||
msgid "v%.2f"
|
||||
msgstr ""
|
||||
|
||||
#: iputils:slongversion
|
||||
msgid "Version %.2f"
|
||||
msgstr ""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user