killmenow

This commit is contained in:
willkensonh 2018-10-15 14:29:29 +11:00
parent 7a73f5b2cd
commit 937a91f687
2 changed files with 4 additions and 1 deletions

View File

@ -77,6 +77,7 @@ EOD;
$format = $style->getNumberFormat();
$content .= '<numFmt numFmtId="'.$format->getId().'" formatCode="'.$format->getFormatCode().'"/>';
}
$content .= '</numFmts>';
return $content;
}

View File

@ -121,8 +121,10 @@ class StyleRegistry extends \Box\Spout\Writer\Common\Manager\Style\StyleRegistry
$registeredFormatId = $this->styleIdToNumberFormatMappingTable[$registeredStyleId];
$this->styleIdToNumberFormatMappingTable[$styleId] = $registeredFormatId;
} else {
$formatId = count($this->registeredNumberFormats);
$this->registeredNumberFormats[$serializedFormat] = $styleId;
$this->styleIdToNumberFormatMappingTable[$styleId] = count($this->registeredNumberFormats);
$this->styleIdToNumberFormatMappingTable[$styleId] = $formatId;
$format->setId($formatId);
}
} else {
// The fillId maps a style to a fill declaration