Skip to content

Commit 7409254

Browse files
committed
Avoid infinite loop with invalid table data
1 parent 16e73d1 commit 7409254

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layout-manager.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const { ColSpanCell, RowSpanCell } = Cell;
110110
let colSpanCell = new ColSpanCell();
111111
colSpanCell.x = cell.x + k;
112112
colSpanCell.y = cell.y;
113-
cellColumns.splice(columnIndex + 1, 0, colSpanCell);
113+
cellColumns.splice(colSpanCell.x, 0, colSpanCell);
114114
}
115115
}
116116
}

0 commit comments

Comments
 (0)