[Bug 5882] riched20: NSIS-Installer Regression (crash after assert(!(ME_GetParagraph(pCursorRun)->member.para.nFlags & MEPF_REWRAP))

Wine Bugs wine-bugs at winehq.org
Mon Aug 7 10:26:39 CDT 2006


------- Additional Comments From MattFinn at gmail.com  2006-07-08 10:26 -------
The problem stems from ME_MoveCaret being run with paragraphs marked for
rewrapping, but not wrapped yet.

A possible fix would be to just wrap things at that point:

diff --git a/dlls/riched20/caret.c b/dlls/riched20/caret.c
index 5124822..ebfcff5 100644
--- a/dlls/riched20/caret.c
+++ b/dlls/riched20/caret.c
@@ -175,6 +175,7 @@ ME_MoveCaret(ME_TextEditor *editor)
   int x, y, height;
+  ME_WrapMarkedParagraphs(editor);
   ME_GetCursorCoordinates(editor, &editor->pCursors[0], &x, &y, &height);
   CreateCaret(editor->hWnd, NULL, 0, height);
   SetCaretPos(x, y);

Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the wine-bugs mailing list