@@ 715-718 (lines=4) @@ | ||
712 | // Cannot be resolved already in XF record, because PALETTE record comes afterwards |
|
713 | if (!$this->readDataOnly) { |
|
714 | foreach ($this->objFonts as $objFont) { |
|
715 | if (isset($objFont->colorIndex)) { |
|
716 | $color = Excel5\Color::map($objFont->colorIndex, $this->palette, $this->version); |
|
717 | $objFont->getColor()->setRGB($color['rgb']); |
|
718 | } |
|
719 | } |
|
720 | ||
721 | foreach ($this->spreadsheet->getCellXfCollection() as $objStyle) { |
|
@@ 741-744 (lines=4) @@ | ||
738 | $left = $objStyle->getBorders()->getLeft(); |
|
739 | $diagonal = $objStyle->getBorders()->getDiagonal(); |
|
740 | ||
741 | if (isset($top->colorIndex)) { |
|
742 | $borderTopColor = Excel5\Color::map($top->colorIndex, $this->palette, $this->version); |
|
743 | $top->getColor()->setRGB($borderTopColor['rgb']); |
|
744 | } |
|
745 | if (isset($right->colorIndex)) { |
|
746 | $borderRightColor = Excel5\Color::map($right->colorIndex, $this->palette, $this->version); |
|
747 | $right->getColor()->setRGB($borderRightColor['rgb']); |
|
@@ 745-748 (lines=4) @@ | ||
742 | $borderTopColor = Excel5\Color::map($top->colorIndex, $this->palette, $this->version); |
|
743 | $top->getColor()->setRGB($borderTopColor['rgb']); |
|
744 | } |
|
745 | if (isset($right->colorIndex)) { |
|
746 | $borderRightColor = Excel5\Color::map($right->colorIndex, $this->palette, $this->version); |
|
747 | $right->getColor()->setRGB($borderRightColor['rgb']); |
|
748 | } |
|
749 | if (isset($bottom->colorIndex)) { |
|
750 | $borderBottomColor = Excel5\Color::map($bottom->colorIndex, $this->palette, $this->version); |
|
751 | $bottom->getColor()->setRGB($borderBottomColor['rgb']); |
|
@@ 749-752 (lines=4) @@ | ||
746 | $borderRightColor = Excel5\Color::map($right->colorIndex, $this->palette, $this->version); |
|
747 | $right->getColor()->setRGB($borderRightColor['rgb']); |
|
748 | } |
|
749 | if (isset($bottom->colorIndex)) { |
|
750 | $borderBottomColor = Excel5\Color::map($bottom->colorIndex, $this->palette, $this->version); |
|
751 | $bottom->getColor()->setRGB($borderBottomColor['rgb']); |
|
752 | } |
|
753 | if (isset($left->colorIndex)) { |
|
754 | $borderLeftColor = Excel5\Color::map($left->colorIndex, $this->palette, $this->version); |
|
755 | $left->getColor()->setRGB($borderLeftColor['rgb']); |
|
@@ 753-756 (lines=4) @@ | ||
750 | $borderBottomColor = Excel5\Color::map($bottom->colorIndex, $this->palette, $this->version); |
|
751 | $bottom->getColor()->setRGB($borderBottomColor['rgb']); |
|
752 | } |
|
753 | if (isset($left->colorIndex)) { |
|
754 | $borderLeftColor = Excel5\Color::map($left->colorIndex, $this->palette, $this->version); |
|
755 | $left->getColor()->setRGB($borderLeftColor['rgb']); |
|
756 | } |
|
757 | if (isset($diagonal->colorIndex)) { |
|
758 | $borderDiagonalColor = Excel5\Color::map($diagonal->colorIndex, $this->palette, $this->version); |
|
759 | $diagonal->getColor()->setRGB($borderDiagonalColor['rgb']); |
|
@@ 757-760 (lines=4) @@ | ||
754 | $borderLeftColor = Excel5\Color::map($left->colorIndex, $this->palette, $this->version); |
|
755 | $left->getColor()->setRGB($borderLeftColor['rgb']); |
|
756 | } |
|
757 | if (isset($diagonal->colorIndex)) { |
|
758 | $borderDiagonalColor = Excel5\Color::map($diagonal->colorIndex, $this->palette, $this->version); |
|
759 | $diagonal->getColor()->setRGB($borderDiagonalColor['rgb']); |
|
760 | } |
|
761 | } |
|
762 | } |
|
763 |