mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-03 04:38:13 +02:00
IDE: fixed crash on selecting frame
git-svn-id: trunk@15694 -
This commit is contained in:
parent
75cb5b0984
commit
86cf5d94fb
@ -7661,7 +7661,7 @@ begin
|
||||
if TViewUnitsEntry(UnitList.Objects[i]).Selected then
|
||||
begin
|
||||
AnUnitInfo := Project1.Units[TViewUnitsEntry(UnitList.Objects[i]).ID];
|
||||
if (AnUnitInfo.ComponentName <> '') then
|
||||
if (AnUnitInfo.Component<>nil) then
|
||||
begin
|
||||
Result := TComponentClass(AnUnitInfo.Component.ClassType);
|
||||
//DebugLn(AnUnitInfo.ComponentName + ' has been selected');
|
||||
|
Loading…
Reference in New Issue
Block a user