Created attachment 113325 [details]
Original ODT file
When saving the attached document as doc, the first table block is corrupted when opening with word 2013.
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
Build NO: de093506bcdc5fafd9023ee680b8c60e3e0645d7
Re bug: https://bugs.documentfoundation.org/show_bug.cgi?id=89297 (item 3 on comment 4)
Created attachment 113326 [details]
Corrupted doc version
I can confirm with Version: 188.8.131.52.alpha0+
Build ID: 62969accf9c01b71b738424d4d643db8bfaed182
TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:master, Time: 2015-02-08_23:22:32
docx version works, doc format is corrupted
(In reply to raal from comment #2)
> I can confirm with Version: 184.108.40.206.alpha0+
> Build ID: 62969accf9c01b71b738424d4d643db8bfaed182
> TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:master, Time:
> docx version works, doc format is corrupted
Reproducible with LO 220.127.116.11, Win 8.1
Also shown as corrupted in Word 2003 and LO dev5.3.
Bibisect-44max: First bad commit:
Author: Umesh Kadam <email@example.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?
fix proposed at https://gerrit.libreoffice.org/#/c/29706/
Justin Luth committed a patch related to this issue.
It has been pushed to "master":
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:
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.
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