Commit 314bd5ca authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

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.
parent ef79507d
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment