Created attachment 170212 [details]
Test case for grouped captions.
In my DOCX figures, I wrap the text around them, add a caption and group the caption with the figure so that I can move them together. I then include cross-references to these figures in the text.
When opening the DOCX file LibreOffice Writer, the label in the caption text is lost (or not imported properly) and the caption's style information is not consistent with the original file. While the reference points to Figure 1, if I update the field the cross-reference will result in an error.
Please see the attached test document. It includes the text with the cross-reference and a simple figure with a caption grouped with it.
Opening the same file in writer results in the caption having lost the style information (it is no longer registered as "Caption" and not formatted correctly) and the figure label has been lost.
Please note that the DOCX file was generated with Word 2010.
Created attachment 170348 [details]
Comparison MSO 2010 and LibreOffice 7.2 master
Version: 126.96.36.199.alpha0+ / LibreOffice Community
Build ID: ee0f845b3d739a6109f08d5c0cd0d839100f6828
CPU threads: 4; OS: Linux 5.7; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Also reproduced in
Build ID: a8a7b7114d96b2013b00e9bc0ced81aad5495457
CPU Threads: 4; OS Version: Linux 5.7; UI Render: default;
Locale: en-US (en_US.UTF-8); Calc: group
*** This bug has been marked as a duplicate of bug 66039 ***