riched20: Use a cell helper in the split paragraph undo function.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2020-11-04 06:56:23 +00:00 committed by Alexandre Julliard
parent 04158801f9
commit 3c10a3eff7
1 changed files with 2 additions and 3 deletions

View File

@ -399,9 +399,8 @@ static void ME_PlayUndoItem(ME_TextEditor *editor, struct undo_item *undo)
new_para->border = undo->u.split_para.border;
if (paraFlags)
{
ME_DisplayItem *pCell = new_para->pCell;
pCell->member.cell.nRightBoundary = undo->u.split_para.cell_right_boundary;
pCell->member.cell.border = undo->u.split_para.cell_border;
para_cell( new_para )->nRightBoundary = undo->u.split_para.cell_right_boundary;
para_cell( new_para )->border = undo->u.split_para.cell_border;
}
break;
}