Commit 6b9b7b2d authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

riched20: Use the paragraph from the cursor.

parent f9a82574
...@@ -335,13 +335,11 @@ static void ME_PlayUndoItem(ME_TextEditor *editor, struct undo_item *undo) ...@@ -335,13 +335,11 @@ static void ME_PlayUndoItem(ME_TextEditor *editor, struct undo_item *undo)
case undo_set_para_fmt: case undo_set_para_fmt:
{ {
ME_Cursor tmp; ME_Cursor tmp;
ME_DisplayItem *para;
cursor_from_char_ofs( editor, undo->u.set_para_fmt.pos, &tmp ); cursor_from_char_ofs( editor, undo->u.set_para_fmt.pos, &tmp );
para = ME_FindItemBack(tmp.pRun, diParagraph); add_undo_set_para_fmt( editor, &tmp.pPara->member.para );
add_undo_set_para_fmt( editor, &para->member.para ); tmp.pPara->member.para.fmt = undo->u.set_para_fmt.fmt;
para->member.para.fmt = undo->u.set_para_fmt.fmt; tmp.pPara->member.para.border = undo->u.set_para_fmt.border;
para->member.para.border = undo->u.set_para_fmt.border; para_mark_rewrap( editor, &tmp.pPara->member.para );
para_mark_rewrap( editor, &para->member.para );
break; break;
} }
case undo_set_char_fmt: case undo_set_char_fmt:
......
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