diff --git a/docs/changes/1.2.0.md b/docs/changes/1.2.0.md index 3d1ae643e..597f43a4f 100644 --- a/docs/changes/1.2.0.md +++ b/docs/changes/1.2.0.md @@ -10,6 +10,7 @@ ## Bug fixes - Word2007 Reader: Fixed cast of spacing fixing [#729](https://github.com/PHPOffice/PHPPresentation/pull/729), [#796](https://github.com/PHPOffice/PHPPresentation/pull/796) in [#818](https://github.com/PHPOffice/PHPPresentation/pull/818) +- Word2007 Writer: Fixed missing images by [@kw-pr](https://github.com/kw-pr) [#829](https://github.com/PHPOffice/PHPPresentation/pull/829) - CI : Fixed PHPCSFixer by [@kw-pr](https://github.com/kw-pr) in [#835](https://github.com/PHPOffice/PHPPresentation/pull/835) ## Miscellaneous diff --git a/src/PhpPresentation/Slide/AbstractSlide.php b/src/PhpPresentation/Slide/AbstractSlide.php index 714fa10b9..96a9f2663 100644 --- a/src/PhpPresentation/Slide/AbstractSlide.php +++ b/src/PhpPresentation/Slide/AbstractSlide.php @@ -242,7 +242,7 @@ public function createChartShape(): Chart public function createDrawingShape(): File { $shape = new File(); - $this->addShape($shape); + $shape->setContainer($this); return $shape; }