python-pptx
python-pptx copied to clipboard
Duplicate slide ID when adding to an existing presentation
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 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 That fixed it. Thank you! Once again, this is an awesome project.
I'll keep an eye out for the real fix.
Fixed with commit df75420 on develop. Will push with hotfix release 0.4.2 tonight.