Created attachment 99390 [details] The file is right protected, Problem description: Steps to reproduce: 1. Open the attached file in LO. 2. Save the file with docx extension. 3. Try to open the file with MS Word 2010 Current behavior: 1) We get a dialogue stating the file is corrupted. Expected behavior: 1) The file should open properly Operating System: Ubuntu Version: 4.3.0.0.alpha0+ Master
Repro, Version: 4.3.0.0.alpha1+ Build ID: cd11bc699ac50af4f560ed5f2e5e7903de0898b8 TinderBox: Win-x86@51-TDF, Branch:MASTER, Time: 2014-05-20_08:02:54
1) After further analysis of nodes.xml and layout.xml following things were found a) The actual cause of the issue is a WATERMARK. b) There is a condition in void MSWordExportBase::OutputTextNode( const SwTxtNode& rNode ) wrtw8nds.cxx which checks that if we are in document.xml then we shouldn't write watermark information as it should be in the header.xml file. c) Further more analysis led to the conclusion that during import itself the watermark is getting anchored on the text in the first row of the table which is in document.xml. d) Due to this when we go to write the first row of the table the following condition wrtw8nds.cxx if (( TXT_HDFT != nTxtTyp) && aWatermarkAttrIter.IsWatermarkFrame()) { return; } becomes true and it returns..
The issue is in the import itself. The watermark which is a part of the header is getting anchored on the row of the table in the body..
Fail to reproduce Windows 7 LibreOffice Version: 5.0.0.0.alpha1+ (x64) Build ID: 9d0c51daea67104349cac26de9839afa8baeb099 TinderBox: Win-x86_64@42, Branch:master, Time: 2015-05-15_23:59:35 Locale: nl-BE (nl_BE) Opened using Word 2010.