richedit: Copy cell border properties when appending a row to the table.

This commit is contained in:
Dylan Smith 2008-08-28 15:24:15 -04:00 committed by Alexandre Julliard
parent ab6ca01471
commit ff1f3d76b7
1 changed files with 2 additions and 0 deletions

View File

@ -402,12 +402,14 @@ static ME_DisplayItem* ME_AppendTableRow(ME_TextEditor *editor,
insertedCell = ME_FindItemFwd(para, diCell);
/* Copy cell properties */
insertedCell->member.cell.nRightBoundary = cell->member.cell.nRightBoundary;
insertedCell->member.cell.border = cell->member.cell.border;
while (cell->member.cell.next_cell) {
cell = cell->member.cell.next_cell;
para = ME_InsertTableCellFromCursor(editor);
insertedCell = ME_FindItemBack(para, diCell);
/* Copy cell properties */
insertedCell->member.cell.nRightBoundary = cell->member.cell.nRightBoundary;
insertedCell->member.cell.border = cell->member.cell.border;
};
ME_InsertTableRowEndFromCursor(editor);
/* return the table row start for the inserted paragraph */