mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 18:30:44 +02:00
IDE: SpartaDockedFormEditor: Fixed AV when component from component palette is selected and no form unit is in the editor.
git-svn-id: trunk@55145 -
This commit is contained in:
parent
e34e7bb6bf
commit
0280aea023
@ -8512,6 +8512,7 @@ begin
|
|||||||
{$IFDEF VerboseIDEDisplayState}
|
{$IFDEF VerboseIDEDisplayState}
|
||||||
debugln(['TMainIDE.DoShowDesignerFormOfCurrentSrc ']);
|
debugln(['TMainIDE.DoShowDesignerFormOfCurrentSrc ']);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
AForm := nil;
|
||||||
GetUnit(TSourceEditor(AEditor), ActiveUnitInfo);
|
GetUnit(TSourceEditor(AEditor), ActiveUnitInfo);
|
||||||
if (ActiveUnitInfo = nil) then exit;
|
if (ActiveUnitInfo = nil) then exit;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user