python-pptx icon indicating copy to clipboard operation
python-pptx copied to clipboard

Duplicate slide ID when adding to an existing presentation

Open jon85 opened this issue 12 years ago • 3 comments

When adding new slides to an existing presentation it is possible to end up with a duplicate slide id causing PowerPoint to issue a warning.

See Id 264 in diff: http://pastebin.com/9UqYA9ms

jon85 avatar Apr 16 '14 21:04 jon85

@jon85 if you want a quick fix for this, you can just change this line to use a bigger number like say 300 instead of 256: https://github.com/scanny/python-pptx/blob/master/pptx/oxml/presentation.py#L84

scanny avatar Apr 16 '14 21:04 scanny

@scanny That fixed it. Thank you! Once again, this is an awesome project.

I'll keep an eye out for the real fix.

jon85 avatar Apr 16 '14 21:04 jon85

Fixed with commit df75420 on develop. Will push with hotfix release 0.4.2 tonight.

scanny avatar Apr 30 '14 06:04 scanny