wordpad: Re-order format clearing when selecting new file.

This commit is contained in:
Alexander Nicolaysen Sørnes 2007-08-23 15:02:23 +02:00 committed by Alexandre Julliard
parent f586e1cce1
commit cd97bf4e74
1 changed files with 2 additions and 2 deletions

View File

@ -1867,12 +1867,12 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
set_caption(NULL);
wszFileName[0] = '\0';
clear_formatting();
st.flags = ST_DEFAULT;
st.codepage = 1200;
SendMessageW(hEditorWnd, EM_SETTEXTEX, (WPARAM)&st, 0);
clear_formatting();
SendMessageW(hEditorWnd, EM_SETMODIFY, FALSE, 0);
set_fileformat(ret);
}