Created attachment 107272 [details]
Cross-reference to Number range variables (Figures, Table, Illustration, etc.) are not saved correctly in docx format.
STEPS TO REPRODUCE:
(1) First, create a number range variable:
Insert > Cross-reference... > Variables > Number range > Illustration > Insert
(2) Second, create a cross-reference to this variable:
Insert > Cross-reference... > Cross-references > Illustration > Numbering > Insert
(3) Save as docx.
The cross-reference is not converted correctly to text format in the .docx document. It doesn't show the content of the field, but the type of the variable instead. For the example given above, it would not show "1", but "Illustration" instead. This problem is not present when saving in .doc format.
Created attachment 107273 [details]
Bug is still reproducible in Version: 22.214.171.124
Created attachment 109029 [details]
Original Libroffice file showing working cross reference
Created attachment 109030 [details]
Docx file save with LO from Original file. Showing misbehaving cross reference
Created attachment 109031 [details]
Same file, re-worked in MSO2013 with working cross reference, for diff detection
Confirm this bug on LO 126.96.36.199
Attached 3 files to show behavior and difference in word/document.xml between the DOCX save from LO and a working equivalent from MSO2013.
This bug is a show stopper for me and anyone exchanging documents with MSO users
Some QA housekeeping
Nothing new in this issue. Resolving as duplicate of bug 42346 which is already on the MAB list.
*** This bug has been marked as a duplicate of bug 42346 ***
Just adding some specifications regarding the duplicate of this bug report with bug 42346. I think the behaviour described in the description of bug 42346 is not, strictly speaking, the same as the one I have reported.
I was not, in this bug report, reporting about the fact that the cross-references are converted to text upon saving to .doc or .docx format. I can quite live with that at the moment.
I am reporting that, for the .docx format only, the cross-references are not converted to text correctly.
This behaviour is not present when converting to .doc format, in contrast to what is said in the description of bug 42346.
I am very glad however if both behaviour comes from the same source, and that it will be resolve soon. Just wanted to be sure everything was clear with my description and there was no misunderstanding. This bug will become very problematic for me in a near future.