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:
michl 2017-06-01 18:20:55 +00:00
parent e34e7bb6bf
commit 0280aea023

View File

@ -8512,6 +8512,7 @@ begin
{$IFDEF VerboseIDEDisplayState}
debugln(['TMainIDE.DoShowDesignerFormOfCurrentSrc ']);
{$ENDIF}
AForm := nil;
GetUnit(TSourceEditor(AEditor), ActiveUnitInfo);
if (ActiveUnitInfo = nil) then exit;