From a4b03a1f57ced0c75eab5e7668f31ee7121164f0 Mon Sep 17 00:00:00 2001 From: Rajendra Singh Date: Sun, 2 Oct 2016 00:56:21 +0530 Subject: [PATCH] Fix Encoding radio button issue in New Document Sync UTF-8 checkbox with UTF-8 radio button Closes #2377 --- PowerEditor/src/WinControls/Preference/preferenceDlg.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp b/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp index d96dd696d..cb8273c63 100644 --- a/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp +++ b/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp @@ -1243,6 +1243,8 @@ INT_PTR CALLBACK DefaultNewDocDlg::run_dlgProc(UINT message, WPARAM wParam, LPAR case IDC_RADIO_OTHERCP : { + ndds._openAnsiAsUtf8 = false; + makeOpenAnsiAsUtf8(false); ::EnableWindow(::GetDlgItem(_hSelf, IDC_COMBO_OTHERCP), true); auto index = ::SendDlgItemMessage(_hSelf, IDC_COMBO_OTHERCP, CB_GETCURSEL, 0, 0); ndds._codepage = static_cast(::SendDlgItemMessage(_hSelf, IDC_COMBO_OTHERCP, CB_GETITEMDATA, index, 0));