extctrls/exquestiondlg: Do not use an empty string as font name

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8155 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2021-11-23 17:36:26 +00:00
parent aad769d418
commit 007e6e7dc9

View File

@ -478,6 +478,9 @@ var
QForm: TQForm;
begin
QForm := TQForm.CreateNew(Screen.ActiveCustomForm);
if QuestionDlgEx_FontName = '' then
QForm.Font.Name := 'default'
else
QForm.Font.Name := QuestionDlgEx_FontName;
QForm.Font.Size := QuestionDlgEx_FontSize;
QForm.ButtonAlignment := QuestionDlgEx_ButtonAlignment;