richedit: Copy cell border properties when appending a row to the table.
This commit is contained in:
parent
ab6ca01471
commit
ff1f3d76b7
|
@ -402,12 +402,14 @@ static ME_DisplayItem* ME_AppendTableRow(ME_TextEditor *editor,
|
||||||
insertedCell = ME_FindItemFwd(para, diCell);
|
insertedCell = ME_FindItemFwd(para, diCell);
|
||||||
/* Copy cell properties */
|
/* Copy cell properties */
|
||||||
insertedCell->member.cell.nRightBoundary = cell->member.cell.nRightBoundary;
|
insertedCell->member.cell.nRightBoundary = cell->member.cell.nRightBoundary;
|
||||||
|
insertedCell->member.cell.border = cell->member.cell.border;
|
||||||
while (cell->member.cell.next_cell) {
|
while (cell->member.cell.next_cell) {
|
||||||
cell = cell->member.cell.next_cell;
|
cell = cell->member.cell.next_cell;
|
||||||
para = ME_InsertTableCellFromCursor(editor);
|
para = ME_InsertTableCellFromCursor(editor);
|
||||||
insertedCell = ME_FindItemBack(para, diCell);
|
insertedCell = ME_FindItemBack(para, diCell);
|
||||||
/* Copy cell properties */
|
/* Copy cell properties */
|
||||||
insertedCell->member.cell.nRightBoundary = cell->member.cell.nRightBoundary;
|
insertedCell->member.cell.nRightBoundary = cell->member.cell.nRightBoundary;
|
||||||
|
insertedCell->member.cell.border = cell->member.cell.border;
|
||||||
};
|
};
|
||||||
ME_InsertTableRowEndFromCursor(editor);
|
ME_InsertTableRowEndFromCursor(editor);
|
||||||
/* return the table row start for the inserted paragraph */
|
/* return the table row start for the inserted paragraph */
|
||||||
|
|
Loading…
Reference in New Issue