sw/source/core/doc/docbm.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 65368d40bea28bd2d7abfae61056c68d3613c54c
Author: Noel Grandin <[email protected]>
AuthorDate: Thu Oct 27 17:45:20 2022 +0200
Commit: Noel Grandin <[email protected]>
CommitDate: Thu Oct 27 19:05:30 2022 +0200
add a comment
Change-Id: Iefaf4124327f89277605b1092da2db8b28ef05e0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141913
Tested-by: Jenkins
Reviewed-by: Noel Grandin <[email protected]>
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx
index 3243a79c55ff..13f4e16aef49 100644
--- a/sw/source/core/doc/docbm.cxx
+++ b/sw/source/core/doc/docbm.cxx
@@ -1219,6 +1219,8 @@ namespace sw::mark
}
};
+ // Call DeregisterFromDoc() lazily, because it can call selection change
listeners, which
+ // may mutate the marks container
struct LazyDdeBookmarkDeleter : public IDocumentMarkAccess::ILazyDeleter
{
std::unique_ptr<DdeBookmark> m_pDdeBookmark;