Commit 9fc4537a authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

bug placement des cellules

parent 8c52629a
Loading
Loading
Loading
Loading
+6 −2
Changes for src/Calc/Sheet.php: 6 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -92,12 +92,16 @@ class Sheet
    protected function readRow(DOMNode $rowNode, int $row)
    {
        $cells = $rowNode->childNodes;
        $col   = 1;
        $col   = 0;
        foreach ($cells as $c) {
            $col++;
            if ('table:covered-table-cell' == $c->tagName) {
                $col--;
            }
            if ('table:table-cell' == $c->tagName) {
                $cell = new Cell($c);
                if ($r = $cell->getRepeated()){
                    $col += $r;
                    $col += $r - 1;
                    continue;
                }
                $init = true;