ide: check if sourceditor has active editor before working with it font (no more crash when you edit ide options with closed editor)

git-svn-id: trunk@17678 -
This commit is contained in:
paul 2008-12-04 08:03:09 +00:00
parent 5775f67b6e
commit 1c79f69559

View File

@ -6124,6 +6124,8 @@ begin
if (snWarnedFont in States) then exit;
Include(States,snWarnedFont);
SrcEdit:=GetActiveSE;
if SrcEdit = nil then
Exit;
CurFont:=SrcEdit.EditorComponent.Font;
if (not CurFont.CanUTF8) and SystemCharSetIsUTF8
and ((EditorOpts.DoNotWarnForFont='')