Skip to content

Commit

Permalink
Update Slk.php
Browse files Browse the repository at this point in the history
  • Loading branch information
oleibman committed May 1, 2024
1 parent f012091 commit 18bc613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpSpreadsheet/Reader/Slk.php
Expand Up @@ -404,7 +404,7 @@ private function addWidth(Spreadsheet $spreadsheet, string $columnWidth, string
$endCol = Coordinate::stringFromColumnIndex((int) $endCol);
$spreadsheet->getActiveSheet()->getColumnDimension($startCol)->setWidth((float) $columnWidth);
do {
$spreadsheet->getActiveSheet()->getColumnDimension(++$startCol)->setWidth((float) $columnWidth);
$spreadsheet->getActiveSheet()->getColumnDimension((string) ++$startCol)->setWidth((float) $columnWidth);
} while ($startCol !== $endCol);
}
}
Expand Down

0 comments on commit 18bc613

Please sign in to comment.