Module: wine Branch: refs/heads/master Commit: 3a0c15e939a5a02f91142f34829a61ee74203dd6 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=3a0c15e939a5a02f91142f34...
Author: Krzysztof Foltman wdev@foltman.com Date: Fri Aug 4 23:40:06 2006 +0200
riched20: Ensure text is wrapped before invalidating selection.
---
dlls/riched20/caret.c | 1 + dlls/riched20/paint.c | 1 + 2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/riched20/caret.c b/dlls/riched20/caret.c index da52288..5124822 100644 --- a/dlls/riched20/caret.c +++ b/dlls/riched20/caret.c @@ -118,6 +118,7 @@ ME_GetCursorCoordinates(ME_TextEditor *e
assert(!pCursor->nOffset || !editor->bCaretAtEnd); assert(height && x && y); + assert(!(ME_GetParagraph(pCursorRun)->member.para.nFlags & MEPF_REWRAP));
if (pCursorRun->type == diRun) { ME_DisplayItem *row = ME_FindItemBack(pCursorRun, diStartRowOrParagraph); diff --git a/dlls/riched20/paint.c b/dlls/riched20/paint.c index f26583c..899f2d0 100644 --- a/dlls/riched20/paint.c +++ b/dlls/riched20/paint.c @@ -505,6 +505,7 @@ ME_InvalidateFromOfs(ME_TextEditor *edit void ME_InvalidateSelection(ME_TextEditor *editor) { + ME_WrapMarkedParagraphs(editor); if (ME_IsSelection(editor) || editor->nLastSelStart != editor->nLastSelEnd) { int x, y, height;