wordpad: Re-order format clearing when selecting new file.
This commit is contained in:
parent
f586e1cce1
commit
cd97bf4e74
|
@ -1867,12 +1867,12 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
|
||||||
set_caption(NULL);
|
set_caption(NULL);
|
||||||
wszFileName[0] = '\0';
|
wszFileName[0] = '\0';
|
||||||
|
|
||||||
|
clear_formatting();
|
||||||
|
|
||||||
st.flags = ST_DEFAULT;
|
st.flags = ST_DEFAULT;
|
||||||
st.codepage = 1200;
|
st.codepage = 1200;
|
||||||
SendMessageW(hEditorWnd, EM_SETTEXTEX, (WPARAM)&st, 0);
|
SendMessageW(hEditorWnd, EM_SETTEXTEX, (WPARAM)&st, 0);
|
||||||
|
|
||||||
clear_formatting();
|
|
||||||
|
|
||||||
SendMessageW(hEditorWnd, EM_SETMODIFY, FALSE, 0);
|
SendMessageW(hEditorWnd, EM_SETMODIFY, FALSE, 0);
|
||||||
set_fileformat(ret);
|
set_fileformat(ret);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue