From 20d71a19c2f64ce987db37f8f230e5b023afeefd Mon Sep 17 00:00:00 2001 From: Frank Fiolka <55696097+fio66@users.noreply.github.com> Date: Mon, 30 Sep 2019 11:21:40 +0200 Subject: [PATCH] Fixed bug #1814 --- src/DocMeasure.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/DocMeasure.js b/src/DocMeasure.js index 3d5ae8f28..cab48b3d8 100644 --- a/src/DocMeasure.js +++ b/src/DocMeasure.js @@ -479,7 +479,7 @@ class DocMeasure { let cols; let rows; - for (col = 0, cols = node.table.body[0].length; col < cols; col++) { + for (col = 0; col < node.table.body[0].length; col++) { let c = node.table.widths[col]; c._minWidth = 0; c._maxWidth = 0; @@ -602,23 +602,23 @@ class DocMeasure { function markSpans(rowData, col, span) { for (let i = 1; i < span; i++) { - rowData[col + i] = { + rowData.splice([col + i], 0, { _span: true, _minWidth: 0, _maxWidth: 0, rowSpan: rowData[col].rowSpan - }; + }); } } function markVSpans(table, row, col, span) { for (let i = 1; i < span; i++) { - table.body[row + i][col] = { + table.body[row + i].splice(col, 0, { _span: true, _minWidth: 0, _maxWidth: 0, fillColor: table.body[row][col].fillColor - }; + }); } }