richedit: WM_SETTEXT - Clear modify step flag before any notifications can be sent.

Otherwise the app-defined WM_NOTIFY callback might see the modify flag
set, even though WM_SETTEXT is supposed to clear it.
This commit is contained in:
Alex Villacís Lasso 2008-04-27 14:21:02 -05:00 committed by Alexandre Julliard
parent 3cad256d54
commit c52bc58816
1 changed files with 1 additions and 1 deletions

View File

@ -2436,10 +2436,10 @@ static LRESULT RichEditWndProc_common(HWND hWnd, UINT msg, WPARAM wParam,
}
else
TRACE("WM_SETTEXT - NULL\n");
editor->nModifyStep = 0;
ME_CommitUndo(editor);
ME_EmptyUndoStack(editor);
ME_SetSelection(editor, 0, 0);
editor->nModifyStep = 0;
ME_UpdateRepaint(editor);
return 1;
}