From 8e7830795147109fa71059e628c5ff8fbb1a9afd Mon Sep 17 00:00:00 2001 From: Waldi Ravens Date: Sat, 19 Oct 2019 09:22:06 +0200 Subject: [PATCH] Fix initialization of _monospacedFontFinfDlg parameter --- PowerEditor/src/Parameters.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerEditor/src/Parameters.cpp b/PowerEditor/src/Parameters.cpp index 20f64930..2b4e84ee 100644 --- a/PowerEditor/src/Parameters.cpp +++ b/PowerEditor/src/Parameters.cpp @@ -5077,8 +5077,8 @@ void NppParameters::feedGUIParameters(TiXmlNode *node) _nppGUI._backSlashIsEscapeCharacterForSql = false; const TCHAR * optNameMonoFont = element->Attribute(TEXT("monospacedFontFinfDlg")); - if (optNameMonoFont && !lstrcmp(optNameMonoFont, TEXT("no"))) - _nppGUI._monospacedFontFinfDlg = false; + if (optNameMonoFont) + _nppGUI._monospacedFontFinfDlg = (lstrcmp(optNameMonoFont, TEXT("yes")) == 0); const TCHAR * optNameNewStyleSaveDlg = element->Attribute(TEXT("newStyleSaveDlg")); if (optNameNewStyleSaveDlg)