Open the issue file in LO.
> Save file as docx
> Open the saved file in MS WORD 2010
Expected Result :: File Opens without corruption on Word
Actual Result :: File is shown as corrupt on Word
In the original file /word/header2.xml
there is an SDT and, a drawing which has a PAGE field.
In RT file there are two SDTs instead of one as in the original.
Created attachment 105232 [details]
Created attachment 105233 [details]
Confirmed on Windows with master, 4.1.6 and 3.6.7. Word 2013 gives an error but if you go through the error messages, the file opens fine.
Vinaya Mandke committed a patch related to this issue.
It has been pushed to "master":
fdo#83057 File corrupts on save, as SDT is added incorrectly
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
Patch merged + unit test -> RESOLVED FIXED.