From cd97bf4e74e553bc3fff8339b530563066267a00 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Thu, 23 Aug 2007 15:02:23 +0200 Subject: [PATCH] wordpad: Re-order format clearing when selecting new file. --- programs/wordpad/wordpad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/wordpad/wordpad.c b/programs/wordpad/wordpad.c index 456f33ff3a8..de58c2f40dd 100644 --- a/programs/wordpad/wordpad.c +++ b/programs/wordpad/wordpad.c @@ -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); } -- 2.11.4.GIT