From 4ea8be9a0d9b5658534748348d2a81f7a124f6fc Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Tue, 19 Dec 2017 11:27:26 +0100 Subject: [PATCH] + fix: "Default Font..." add check for current scheme is not default text already --- src/Styles.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Styles.c b/src/Styles.c index 6acb7ed28..20ba3ae45 100644 --- a/src/Styles.c +++ b/src/Styles.c @@ -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