mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-21 09:42:12 +01:00
Codetools: fix crash when trying to add declaration for "foo := unit1;" Patch by WooBean007
This commit is contained in:
parent
e72f2533e7
commit
ba0c38e2b4
@ -13778,8 +13778,9 @@ begin
|
|||||||
FindContext:=ExprType.Context;
|
FindContext:=ExprType.Context;
|
||||||
|
|
||||||
// ToDo: PPU, DCU
|
// ToDo: PPU, DCU
|
||||||
|
if (FindContext.Node<>nil) and (FindContext.Node.Parent<>nil) and
|
||||||
if FindContext.Node.Parent.Desc=ctnTypeDefinition then
|
(FindContext.Node.Parent.Desc=ctnTypeDefinition)
|
||||||
|
then
|
||||||
FindContext.Node:=FindContext.Node.Parent;
|
FindContext.Node:=FindContext.Node.Parent;
|
||||||
case FindContext.Node.Desc of
|
case FindContext.Node.Desc of
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user