riched20: Fixed undo stack corruption.

This commit is contained in:
Phil Krylov 2006-02-04 16:59:37 +01:00 committed by Alexandre Julliard
parent 46d3762a94
commit 65fdee73b9
1 changed files with 2 additions and 1 deletions

View File

@ -324,7 +324,8 @@ ME_InsertRunAtCursor(ME_TextEditor *editor, ME_Cursor *cursor, ME_Style *style,
pUI = ME_AddUndoItem(editor, diUndoDeleteRun, NULL);
if (pUI) {
pUI->nStart = cursor->pRun->member.run.nCharOfs;
pUI->nStart = (ME_GetParagraph(cursor->pRun)->member.para.nCharOfs
+ cursor->pRun->member.run.nCharOfs);
pUI->nLen = len;
}