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.
This commit is contained in:
parent
ef79507d88
commit
314bd5ca85
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in New Issue