Skip to content

Commit

Permalink
Fixing broken powerpoint presentations due to MS Office update 2309
Browse files Browse the repository at this point in the history
  • Loading branch information
WFarmerEthisphere committed Oct 6, 2023
1 parent 1d5b988 commit 0fbcaf8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/PhpPresentation/Shape/Chart/Axis.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand All @@ -59,7 +61,7 @@ class Axis implements ComparableInterface
*
* @var string
*/
private $formatCode = '';
private $formatCode = self::DEFAULT_FORMAT_CODE;

/**
* Font.
Expand Down Expand Up @@ -543,4 +545,4 @@ public function setTickLabelPosition(string $value = self::TICK_LABEL_POSITION_N

return $this;
}
}
}

0 comments on commit 0fbcaf8

Please sign in to comment.