#3892 Crash at fillCompositionLogfont
parent
df1c018bed
commit
632a8648ca
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue