https://bugs.documentfoundation.org/show_bug.cgi?id=31272
Julien Nabet <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #16 from Julien Nabet <[email protected]> --- On pc Debian x86-64 with master sources updated today, I could reproduce this. With this patch: diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx index ee03134e8590..3a713a466122 100644 --- a/sw/source/core/doc/docbm.cxx +++ b/sw/source/core/doc/docbm.cxx @@ -47,6 +47,7 @@ #include <libxml/xmlstring.h> #include <libxml/xmlwriter.h> +#include <comphelper/dispatchcommand.hxx> #include <comphelper/lok.hxx> #include <strings.hrc> @@ -1260,6 +1261,7 @@ namespace sw::mark pBookmark->sendLOKDeleteCallback(); m_vBookmarks.erase(ppBookmark); + comphelper::dispatchCommand(u".uno:UpdateFields"_ustr, {}); } else { after these steps: 1) create a brand new document 2) type some paragraphs 3) insert bookmark at some specific location 4) at some other specific location, insert crossreference to the bookmark created in the previous step 5) remove the bookmark => "Error: Reference source not found displays" at the location of the crossreference. I would have prefered an automatic removal of the crossrefence but could it help a bit? -- You are receiving this mail because: You are the assignee for the bug.
