mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 15:36:03 +02:00
codetools: fixed finding ancestors in non class node
git-svn-id: trunk@19796 -
This commit is contained in:
parent
fd88c3a5bd
commit
b41d00e4e3
@ -3541,7 +3541,7 @@ begin
|
||||
// find class node
|
||||
ANode:=FindDeepestNodeAtPos(CleanCursorPos,true);
|
||||
if (ANode.Desc=ctnClassInheritance)
|
||||
or (ANode.Parent.Desc=ctnClassInheritance) then
|
||||
or ((ANode.Parent<>nil) and (ANode.Parent.Desc=ctnClassInheritance)) then
|
||||
exit;
|
||||
ClassNode:=FindClassNode(ANode);
|
||||
if (ClassNode=nil) or (ClassNode.Parent=nil)
|
||||
|
Loading…
Reference in New Issue
Block a user