Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/PhpPresentation/Reader/PowerPoint2007.php
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ protected function loadShapeDrawing(XMLReader $document, DOMElement $node, Abstr
$oSlide->addShape($oShape);
}

protected function loadShapeRichText(XMLReader $document, DOMElement $node, AbstractSlide $oSlide): void
protected function loadShapeRichText(XMLReader $document, DOMElement $node, $oSlide): void
{
if (!$document->elementExists('p:txBody/a:p/a:r', $node)) {
return;
Expand Down
8 changes: 8 additions & 0 deletions tests/PhpPresentation/Tests/Reader/PowerPoint2007Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -615,4 +615,12 @@ public function testSlideLayout(): void
$this->assertCount(11, $masterSlides[1]->getAllSlideLayouts());
$this->assertCount(11, $masterSlides[2]->getAllSlideLayouts());
}

public function testLoadingFileWithNoteInSlide(): void
{
$file = PHPPRESENTATION_TESTS_BASE_DIR . '/resources/files/Issue_00694.pptx';
$object = new PowerPoint2007();
$oPhpPresentation = $object->load($file);
$this->assertInstanceOf('PhpOffice\\PhpPresentation\\PhpPresentation', $oPhpPresentation);
}
}
Binary file added tests/resources/files/Issue_00694.pptx
Binary file not shown.