diff --git a/src/PhpWord/Style/Shading.php b/src/PhpWord/Style/Shading.php index 154df26c7a..35c926e300 100644 --- a/src/PhpWord/Style/Shading.php +++ b/src/PhpWord/Style/Shading.php @@ -128,7 +128,7 @@ public function setColor($value = null) */ public function getFill() { - return $this->fill; + return $this->fill == "auto" ? null : $this->fill; } /** diff --git a/src/PhpWord/Style/Shape.php b/src/PhpWord/Style/Shape.php index 0c3f817982..e45b86073a 100644 --- a/src/PhpWord/Style/Shape.php +++ b/src/PhpWord/Style/Shape.php @@ -168,7 +168,7 @@ public function setFrame($value = null) */ public function getFill() { - return $this->fill; + return $this->fill == "auto" ? null : $this->fill; } /**