Module: wine Branch: master Commit: 314bd5ca853e0ae3c77b99b7f21562eadf8f8e8e URL: http://source.winehq.org/git/wine.git/?a=commit;h=314bd5ca853e0ae3c77b99b7f2...
Author: Dylan Smith dylan.ah.smith@gmail.com Date: Mon Aug 10 15:44:59 2009 -0400
richedit: Update paragraph on saved cursor when inserting table start.
Since the table row start is inserted after the rest of the table is inserted, the cursor is saved, and temporarily moved to the start of the row to insert the table row start paragraph. Unfortunately the paragraph in saved cursor becomes invalid during this insertion and needs to be updated, so this code introduced a regression once paragraphs started to be stored in cursors.
---
dlls/riched20/table.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/riched20/table.c b/dlls/riched20/table.c index 69f4851..0d2dab5 100644 --- a/dlls/riched20/table.c +++ b/dlls/riched20/table.c @@ -96,6 +96,7 @@ ME_DisplayItem* ME_InsertTableRowStartAtParagraph(ME_TextEditor *editor, editor->pCursors[0].nOffset = 0; editor->pCursors[1] = editor->pCursors[0]; startRowPara = ME_InsertTableRowStartFromCursor(editor); + savedCursor.pPara = ME_GetParagraph(savedCursor.pRun); editor->pCursors[0] = savedCursor; editor->pCursors[1] = editor->pCursors[0];