Created attachment 94873 [details] document contains nested text boxes Problem description: 1. document contains the text boxes (some are nested text box) 2. In document.xml, nested AlternateContent present. 3. Due to this the file get corrupted and gives error "You cannot put drawing object into the text box, callout, comment, footnote or endnote" while opening file in MS Office 2010 word. Steps to reproduce: 1. Open the file in LibreOffice 2. Click File -> Save As (Microsoft Word 2007/2010 (.docx)) 3. Open saved file in MS Office Expected: File should open without any error. Actual: File corrupt dialog is shown
YogeshBharate committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=6415f3e7ab6a7728d44dbb49c1486ac9ca649a17 fdo#75604: File Corruption - Issue related to the nested AlternateContent. 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: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Issue related with nested <mc:AlternateContent> is not more exist so closing this issue.
Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/34e80d904054a0752e43a84aabe6d705fd437030 tdf#141173 docx export: revert fdo#75604: File Corruption It will be available in 7.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.