https://bugs.documentfoundation.org/show_bug.cgi?id=120225

--- Comment #3 from Justin L <jl...@mail.com> ---
A bookmark is not created when the it comes from a FORMTEXT (type ==
BOOK_FIELD).
https://cgit.freedesktop.org/libreoffice/core/commit/?id=c535a76dcb550f6b9e98268f49cec1a7c8986156

If I did my back-tracing correctly, this is related to OOo bug
https://bz.apache.org/ooo/show_bug.cgi?id=33737 which didn't suggest any great
insights into this particular bug, but does indicate that this is a difficult
and contentious area to play around in, especially for corporate customers.

Setting the type to BOOK_NORMAL [instead of ww8par3.cxx
pB->SetStatus(bkmFindIdx, BOOK_FIELD)] allows the imported reference to work,
but exporting breaks ww8export's testBnc636128 somehow - probably because it
turns this "fake" bookmark into a real one.

All of that is probably irrelevant though, since the name of the control form
is not even used at all for creating the fieldmark - only an auto-generated
__Fieldmark__ name is assigned which obviously does not tie back to the
original bookmark name. (This has been true since inception commit
df6d312ca5374.)

The example document loads and round-trips OK with patch
https://gerrit.libreoffice.org/61565

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to