From 2c6cb1ffe5e5a717baac71e78d34d7e31ce694de Mon Sep 17 00:00:00 2001 From: Adrien Loison Date: Tue, 8 Dec 2015 10:31:16 -0800 Subject: [PATCH] Fix hasSetFontColor check --- src/Spout/Writer/Style/Style.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Spout/Writer/Style/Style.php b/src/Spout/Writer/Style/Style.php index 7b95769..91e9475 100644 --- a/src/Spout/Writer/Style/Style.php +++ b/src/Spout/Writer/Style/Style.php @@ -293,7 +293,7 @@ class Style if (!$this->hasSetFontSize && $baseStyle->getFontSize() !== self::DEFAULT_FONT_SIZE) { $mergedStyle->setFontSize($baseStyle->getFontSize()); } - if (!$this->hasSetFontSize && $baseStyle->getFontColor() !== self::DEFAULT_FONT_COLOR) { + if (!$this->hasSetFontColor && $baseStyle->getFontColor() !== self::DEFAULT_FONT_COLOR) { $mergedStyle->setFontColor($baseStyle->getFontColor()); } if (!$this->hasSetFontName && $baseStyle->getFontName() !== self::DEFAULT_FONT_NAME) {