killmenow
This commit is contained in:
parent
7a73f5b2cd
commit
937a91f687
@ -77,6 +77,7 @@ EOD;
|
|||||||
$format = $style->getNumberFormat();
|
$format = $style->getNumberFormat();
|
||||||
$content .= '<numFmt numFmtId="'.$format->getId().'" formatCode="'.$format->getFormatCode().'"/>';
|
$content .= '<numFmt numFmtId="'.$format->getId().'" formatCode="'.$format->getFormatCode().'"/>';
|
||||||
}
|
}
|
||||||
|
|
||||||
$content .= '</numFmts>';
|
$content .= '</numFmts>';
|
||||||
return $content;
|
return $content;
|
||||||
}
|
}
|
||||||
|
@ -121,8 +121,10 @@ class StyleRegistry extends \Box\Spout\Writer\Common\Manager\Style\StyleRegistry
|
|||||||
$registeredFormatId = $this->styleIdToNumberFormatMappingTable[$registeredStyleId];
|
$registeredFormatId = $this->styleIdToNumberFormatMappingTable[$registeredStyleId];
|
||||||
$this->styleIdToNumberFormatMappingTable[$styleId] = $registeredFormatId;
|
$this->styleIdToNumberFormatMappingTable[$styleId] = $registeredFormatId;
|
||||||
} else {
|
} else {
|
||||||
|
$formatId = count($this->registeredNumberFormats);
|
||||||
$this->registeredNumberFormats[$serializedFormat] = $styleId;
|
$this->registeredNumberFormats[$serializedFormat] = $styleId;
|
||||||
$this->styleIdToNumberFormatMappingTable[$styleId] = count($this->registeredNumberFormats);
|
$this->styleIdToNumberFormatMappingTable[$styleId] = $formatId;
|
||||||
|
$format->setId($formatId);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// The fillId maps a style to a fill declaration
|
// The fillId maps a style to a fill declaration
|
||||||
|
Loading…
x
Reference in New Issue
Block a user