Created attachment 113325 [details] Original ODT file Hi, When saving the attached document as doc, the first table block is corrupted when opening with word 2013. Steps: 1- Download attached odt file and save as docx 2- Open the document with Word 2013, an error will popup and say the file is corrupted. Some part of the first table block becomes rectangular whitespace. Saving with LibreOffice 4.3.2 is fine. No errors opening with Word Version: 4.4.0.3 Build NO: de093506bcdc5fafd9023ee680b8c60e3e0645d7 Re bug: https://bugs.documentfoundation.org/show_bug.cgi?id=89297 (item 3 on comment 4) Best regards, Zeki
Created attachment 113326 [details] Corrupted doc version
I can confirm with Version: 4.5.0.0.alpha0+ Build ID: 62969accf9c01b71b738424d4d643db8bfaed182 TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:master, Time: 2015-02-08_23:22:32 word2010 docx version works, doc format is corrupted
(In reply to raal from comment #2) > I can confirm with Version: 4.5.0.0.alpha0+ > Build ID: 62969accf9c01b71b738424d4d643db8bfaed182 > TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:master, Time: > 2015-02-08_23:22:32 > word2010 > > docx version works, doc format is corrupted Reproducible with LO 5.1.0.1, Win 8.1
Also shown as corrupted in Word 2003 and LO dev5.3. Bibisect-44max: First bad commit: commit 80fd9fb7209cfd5c0622ee99d59e42e6db32f021 Author: Umesh Kadam <umesh.kadam@synerzip.com> CommitDate: Thu May 22 02:31:53 2014 -0500 fdo#78333 : SdtContent and a Shape overlapping causes corruption - Normally if there is a case where text/shape is overlapped with (another) shape then LO used to write the text and the AlternateContent in the same run. - This is supported in MSO and there is no visual difference. - But in case if the SdtContent(with text) is overlapped with the Shape then LO processes sdtContent as a text and ends up putting the alternateContent and the text in a single run. Ultimately it includes the entire run in a SdtContent, which is incorrect. - The fix checks for the aforementioned scenario and puts them in a different run and also restricts the sdtContent being written in an invalid AlternateContent.
Adding Cc: to Umesh Kadam ; Could you possibly take a look at this one? Thanks
fix proposed at https://gerrit.libreoffice.org/#/c/29706/
Justin Luth committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=b39feae4f12b07a0fdb2c8c2a48d5aae613cd7c9 tdf#89317 ww8export: don't corrupt table with postponed text It will be available in 5.3.0. 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.
Although parts of the description say docx instead of doc, this is actually a .doc bug and the fix in ww8export is in code for .doc only.
Justin, This fix does seem to affect .docx files too. Word 2007 .docx files that are roundtripped are now corrupted. I filed a new bug for this issue. Bug 103261 - FILESAVE: Fix for Bug 89317 corrupts roundtripped Word 2007 docx files