Skip to content

Fix: Don't iterate over every attributeto find w:sectPr#2384

Open
johanneswilm wants to merge 1 commit intosuperdoc-dev:mainfrom
johanneswilm:sd-1855-exportroundtrip-crashes-when-numbering-is-null-cannot-read
Open

Fix: Don't iterate over every attributeto find w:sectPr#2384
johanneswilm wants to merge 1 commit intosuperdoc-dev:mainfrom
johanneswilm:sd-1855-exportroundtrip-crashes-when-numbering-is-null-cannot-read

Conversation

@johanneswilm
Copy link
Contributor

@harbournick I noticed you wrote this code a while back. I am not entirely sure why it was written like that - it creates this problem and so I scaled the walking mechanism back. That should save time as well. It may though be that you are trying to catch more than what I do with this. So please have a look and fix it in another way if needed. What it was doing was comparing with all values of all text fields and all other attributes, which surely isn't what we wanted.

Second reviewer @caio-pizzol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant