From 0fbcaf839e943ad3d25ab142cd9c92f33701c46d Mon Sep 17 00:00:00 2001 From: WFarmerEthisphere Date: Fri, 6 Oct 2023 09:35:00 -0700 Subject: [PATCH] Fixing broken powerpoint presentations due to MS Office update 2309 --- src/PhpPresentation/Shape/Chart/Axis.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/PhpPresentation/Shape/Chart/Axis.php b/src/PhpPresentation/Shape/Chart/Axis.php index 86e187870..7786dca9b 100644 --- a/src/PhpPresentation/Shape/Chart/Axis.php +++ b/src/PhpPresentation/Shape/Chart/Axis.php @@ -42,6 +42,8 @@ class Axis implements ComparableInterface public const CROSSES_MIN = 'min'; public const CROSSES_MAX = 'max'; + public const DEFAULT_FORMAT_CODE = 'general'; + /** * Title. * @@ -59,7 +61,7 @@ class Axis implements ComparableInterface * * @var string */ - private $formatCode = ''; + private $formatCode = self::DEFAULT_FORMAT_CODE; /** * Font. @@ -543,4 +545,4 @@ public function setTickLabelPosition(string $value = self::TICK_LABEL_POSITION_N return $this; } -} +} \ No newline at end of file