#3892 Crash at fillCompositionLogfont

meow-7.2.2
Andrey Kleshchev 2025-04-08 23:34:09 +03:00 committed by Andrey Kleshchev
parent df1c018bed
commit 632a8648ca
1 changed files with 9 additions and 1 deletions

View File

@ -4040,7 +4040,15 @@ void LLWindowWin32::fillCompositionLogfont(LOGFONT *logfont)
break;
}
logfont->lfHeight = mPreeditor->getPreeditFontSize();
if (mPreeditor)
{
logfont->lfHeight = mPreeditor->getPreeditFontSize();
}
else
{
// todo: extract from some font * LLUI::getScaleFactor() intead
logfont->lfHeight = 10;
}
logfont->lfWeight = FW_NORMAL;
}