Skip to content

Commit a9d4bf4

Browse files
committed
fixing relationship ids to be sequential in writing out powerpoint master slides
1 parent 274e8b4 commit a9d4bf4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/PhpPresentation/Writer/PowerPoint2007/PptSlideMasters.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,14 @@ public function writeSlideMasterRelationships(SlideMaster $oMasterSlide)
7070
if ($oBackground instanceof Image) {
7171
$this->writeRelationship($objWriter, $relId, 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image', '../media/' . $oBackground->getIndexedFilename($oMasterSlide->getRelsIndex()));
7272
$oBackground->relationId = 'rId' . $relId;
73+
74+
$relId++;
7375
}
7476

7577
// TODO: Write hyperlink relationships?
7678
// TODO: Write comment relationships
7779
// Relationship theme/theme1.xml
78-
$this->writeRelationship($objWriter, ++$relId, 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme', '../theme/theme' . $oMasterSlide->getRelsIndex() . '.xml');
80+
$this->writeRelationship($objWriter, $relId, 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme', '../theme/theme' . $oMasterSlide->getRelsIndex() . '.xml');
7981
$objWriter->endElement();
8082
// Return
8183
return $objWriter->getData();

0 commit comments

Comments
 (0)