modifs.mineures sans commentaires

This commit is contained in:
Jephté Clain 2024-06-10 23:31:43 +04:00
parent b23708c106
commit bc527bfe7a
1 changed files with 2 additions and 0 deletions

View File

@ -50,9 +50,11 @@ class SsBuilder extends AbstractBuilder {
} }
if ($ws === null) { if ($ws === null) {
$ws = $ss->createSheet()->setTitle($wsname); $ws = $ss->createSheet()->setTitle($wsname);
$this->wroteHeaders = false;
} else { } else {
$maxRow = wsutils::compute_max_coords($ws)[1]; $maxRow = wsutils::compute_max_coords($ws)[1];
$this->nrow = $maxRow - 1; $this->nrow = $maxRow - 1;
$this->wroteHeaders = $maxRow > 1;
} }
$this->ws = $ws; $this->ws = $ws;
} }