+ fix: "Default Font..." add check for current scheme is not default text already

This commit is contained in:
Rainer Kottenhoff 2017-12-19 11:27:26 +01:00
parent a0cc8a02e9
commit 4ea8be9a0d

View File

@ -4041,7 +4041,11 @@ void Style_SetDefaultFont(HWND hwnd)
if (Style_SelectFont(hwnd, font, COUNTOF(font), TRUE, TRUE))
{
switch (InfoBox(MBYESNO, L"MsgApplyDefaultFont", IDS_APPLY_DEFAULT_FONT, pLexCurrent->pszName))
INT_PTR answer = IDNO;
if (pLexCurrent != &lexDefault) {
answer = InfoBox(MBYESNO, L"MsgApplyDefaultFont", IDS_APPLY_DEFAULT_FONT, pLexCurrent->pszName);
}
switch (answer)
{
case IDYES:
// build styles string