Permalink
Browse files

Fix changing default font not saved in configuration file (issue #76).

  • Loading branch information...
zufuliu committed Oct 8, 2018
1 parent 376cf1d commit c5cab485c49795d1b878e1828a027331b907890f
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/Styles.c
@@ -2488,7 +2488,8 @@ BOOL Style_SelectFont(HWND hwnd, LPWSTR lpszStyle, int cchStyle, BOOL bDefaultSt
void Style_SetDefaultFont(HWND hwnd) {
const int iIdx = GetDefaultStyleStartIndex();
if (Style_SelectFont(hwnd, lexDefault.Styles[0 + iIdx].szValue, MAX_EDITSTYLE_VALUE_SIZE, TRUE)) {
fStylesModified = TRUE;
fStylesModified |= STYLESMODIFIED_SOME_STYLE;
lexDefault.bStyleChanged = TRUE;
Style_SetLexer(hwnd, pLexCurrent);
}
}

0 comments on commit c5cab48

Please sign in to comment.