Skip to content

Commit

Permalink
try fixing simonbengtsson#480 a minor issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Rongrong Luo authored and Rongrong Luo committed Apr 12, 2019
1 parent 2dab342 commit 9770fcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tableDrawer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,16 +241,16 @@ function printEmptyCellBorder(rowspanCellsCached) {
let table: Table = state().table;
table.cursor.x = table.margin('left');
if (rowspanCellsCached !== undefined) {
_.forIn(rowspanCellsCached, (cell: any) => {
_.forIn(rowspanCellsCached, (cell: any, key) => {
applyStyles(cell.styles);

let fillStyle = getFillStyle(cell.styles);
if (fillStyle) {
state().doc.rect(table.cursor.x, table.cursor.y, cell.width, cell.height, fillStyle);
}
table.cursor.x += cell.width;
delete rowspanCellsCached[key];
});
rowspanCellsCached = {};
}
}

Expand Down

0 comments on commit 9770fcc

Please sign in to comment.