Skip to content
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

Fixed duplicate shape ID in for-loop issue (#296) #315

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

SuchiraD
Copy link
Contributor

@SuchiraD SuchiraD commented Jul 8, 2023

Change repetitive IDs inside mc:AlternateContent.

Issue

When there are shapes inside a for-loop command, the shapes will be generated with same id in wp:docPr and <v:shape>. This will show a corrupted file message when opening the docx file in MS-Word

Fix

Change the IDs of wp:docPr and <v:shape> before adding them to the final xml structure

@jjhbw
Copy link
Collaborator

jjhbw commented Jul 14, 2023

Thanks a lot for the effort! Good idea to re-use the image id counter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants