Created attachment 95702 [details]
The original file
1) Open the attached document in LO.
2) Do Save as docx
The RT file should get opened successfully in MSWord.
The RT file does not open up.It gets corrupted.
Created attachment 95703 [details]
The RT file.
Reproducible, tested using Mac OSX 10.9 with LibreOffice Version: 126.96.36.199.alpha0+
Build ID: 1b6e87fc232e78790d45a54b7a4ac7fe02d2c587
TinderBox: MacOSX-x86@49-TDF, Branch:master, Time: 2014-03-08_23:04:18
Sourav committed a patch related to this issue.
It has been pushed to "master":
fdo#76108 : The RT file is getting corrupted.
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.
The issue is resolved and code changes are pushed.
The <w:fldChar w:fldCharType="end" /> tag is there inside the hyperlink tag where as the <w:fldChar w:fldCharType="begin"> is starting before the hyperlink tag.This is causing the issue.
The rootcause found is in DocxAttributeOutput::EndRun().
A check is introduced before the code that writes the <w:fldChar w:fldCharType="end" /> after the hyperlink to check if the m_startedHyperlink is false.