Default row style should only apply to existing cells

This commit is contained in:
Adrien Loison committed 2017-11-05 12:17:45 +01:00
1 parent 727a90fd06
commit ca5962271e
5 files changed
+48 -17

No files matched your search

@@ -153,8 +153,8 @@ class WorksheetManager implements WorksheetManagerInterface
{
// Apply styles - the row style is merged at this point
$cell->applyStyle($rowStyle);
$this->styleManager->applyExtraStylesIfNeeded($cell);
$registeredStyle = $this->styleManager->registerStyle($cell->getStyle());
$newCellStyle = $this->styleManager->applyExtraStylesIfNeeded($cell);
$registeredStyle = $this->styleManager->registerStyle($newCellStyle);
$styleIndex = $registeredStyle->getId() + 1; // 1-based
$numTimesValueRepeated = ($nextCellIndex - $currentCellIndex);