mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 15:39:49 +02:00
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:
parent
5775f67b6e
commit
1c79f69559
@ -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='')
|
||||
|
Loading…
Reference in New Issue
Block a user