Created attachment 95955 [details]
Steps to reproduce:
1. Open attached file.
2. Save it back with a different name.
3. Open the saved file with Word 2010 (*)
4. Do some bibliography operation, for example, change the style (references tab -> citations and bibliography box -> style).
5. The citation will change to "invalid source".
(*) I couldn't try with other versions of Word, but probably the bug happens too.
Studying the XML inside the documents, this is the citation in the original file:
<w:instrText xml:space="preserve">CITATION Joh50 \l 1033</w:instrText>
And this is the citation in the exported file:
I've checked that if the exported document looked like this, it would be correct:
Is your problem the same as reported in bug 75133 "Bibliography field flags are not preserved in Round trip file"?
(In reply to comment #1)
> Is your problem the same as reported in bug 75133 "Bibliography field flags
> are not preserved in Round trip file"?
Thanks for the heads up Terry. This bug is a specific problem in the code wrote to fix bug 75133. I've added some comments there to make the hackers working in that bug know about this.
I would rather not close this one as a duplicated as this is a new issue IMHO, but feel free to do what you consider more appropriate :)
Setting status NEW in accord with comment 2.
You know more about this that I do. I am happy with your determination that these are different bugs.
Sourav committed a patch related to this issue.
It has been pushed to "master":
fdo#76279 Invalid Citation on RoundTrip
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.