killmenow
This commit is contained in:
parent
7a73f5b2cd
commit
937a91f687
@ -77,6 +77,7 @@ EOD;
|
||||
$format = $style->getNumberFormat();
|
||||
$content .= '<numFmt numFmtId="'.$format->getId().'" formatCode="'.$format->getFormatCode().'"/>';
|
||||
}
|
||||
|
||||
$content .= '</numFmts>';
|
||||
return $content;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user