Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix bug that show up in excel but not in libreoffice
  • Loading branch information
artnum committed Jul 30, 2020
commit 02fae5878730f53d81fd2c53e79429bb7d9ed9b9
3 changes: 3 additions & 0 deletions xlsxwriter.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ public function writeSheetRow($sheet_name, array $row, $row_options=null, $types
$default_column_types = $this->initializeColumnTypes( array_fill($from=0, $until=count($row), 'GENERAL') );//will map to n_auto
$columns_type = array_merge((array)$columns_type, $default_column_types);
}
if (count($sheet->columns) < count($columns_type)) {
$sheet->columns = $columns_type;
}

if (!empty($row_options))
{
Expand Down