https://bugs.documentfoundation.org/show_bug.cgi?id=148294
--- Comment #14 from Justin L <[email protected]> --- repro 26.8 It probably is a duplicate of bug 139835. In any case, that bug report does a decent analysis of the underlying problem, and that seems to be identical to this one. I assume that DOCX never imports anything as a "cross reference" object in our navigator, but always as a 'bookmark' that is then referenced. So likely our export code relates to this LO-only feature that just doesn't emulate very well. If all that is true, it shouldn't be too hard to fix this. It appears that we write start and end bookmarks immediately. <w:bookmarkStart w:id="0" w:name="Ref_example"/> <w:bookmarkEnd w:id="0"/> <w:r> <w:rPr/> <w:t>example</w:t> </w:r> <w:bookmarkStart w:id="1" w:name="Ref_example"/> <w:bookmarkEnd w:id="1"/> That is thanks to SwWW8AttrIter::OutSwFormatRefMark which is called for both start and end (without knowing which is which), and it simply AppendBookmark which writes both the start and end. Obviously this will never work. We have two different bookmarks with the identical name. And the bookmarks individually surround no text at all - thus why updating the reference loses all content. So likely this was just an implementation error. A WIP patch is at https://gerrit.libreoffice.org/c/core/+/206234 -- You are receiving this mail because: You are the assignee for the bug.
