Skip to content

Set rels index for slide layouts #646

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 6, 2021

Conversation

Brenneisen
Copy link
Contributor

@Brenneisen Brenneisen commented Jul 1, 2021

Due to the change #637 we get an error with SlideLayouts:

PhpOffice\PhpPresentation\Slide\AbstractSlide::getRelsIndex(): Return value must be of type string, null returned.

It seems that relsIndex is not set for SlideLayouts and remains null. By adjusting the return type it does not work now. The method is used in:

PhpOffice\PhpPresentation\Writer\PowerPoint2007\PptSlideLayouts::67

It can be fixed by setting relsIndex in

PhpOffice\PhpPresentation\Writer\PowerPoint2007\ContentTypes::75

Copy link
Member

@Progi1984 Progi1984 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A small feedback @Brenneisen

@Brenneisen
Copy link
Contributor Author

@Progi1984 Thanks for your feedback. I have changed it.

@Brenneisen Brenneisen requested a review from Progi1984 July 6, 2021 14:30
@Progi1984 Progi1984 merged commit 8048fd3 into PHPOffice:develop Jul 6, 2021
@Brenneisen Brenneisen deleted the slide-layouts branch July 6, 2021 20:21
@Progi1984 Progi1984 added this to the 1.0.0 milestone Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants