Module: wine Branch: master Commit: 78584b6ee1da4473aecca4bc8736dddb4cfe21af URL: http://source.winehq.org/git/wine.git/?a=commit;h=78584b6ee1da4473aecca4bc87...
Author: Clinton Stimpson cjstimpson@utwire.net Date: Sat Nov 25 22:04:20 2006 -0700
riched20: Only send EN_CHANGE when it is supposed to be sent.
---
dlls/riched20/paint.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/riched20/paint.c b/dlls/riched20/paint.c index 71ae918..e924f80 100644 --- a/dlls/riched20/paint.c +++ b/dlls/riched20/paint.c @@ -117,7 +117,11 @@ void ME_UpdateRepaint(ME_TextEditor *edi pCursor = &editor->pCursors[0]; ME_EnsureVisible(editor, pCursor->pRun);
- ME_SendOldNotify(editor, EN_CHANGE); + /* send EN_CHANGE if the event mask asks for it */ + if(editor->nEventMask & ENM_CHANGE) + { + ME_SendOldNotify(editor, EN_CHANGE); + } ME_Repaint(editor); ME_SendSelChange(editor); }