sw/inc/tox.hxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit f965f2d5be13e191ae6cc284f048d3731d74d190
Author: Bjoern Michaelsen <[email protected]>
AuthorDate: Fri Aug 2 23:13:22 2024 +0200
Commit: Bjoern Michaelsen <[email protected]>
CommitDate: Mon Aug 5 16:34:56 2024 +0200
tdf#153866: fix .uno:IndexMarkToIndex
- sw::FindContentFrameHint send by SwTOXType is handled by SwTOXBaseSection
- SwTOXBaseSection/SwTOXBase is still an oldschool SwClient to SwTOXType
- thus we need CallSwClientNotify() for now
- once SwTOXBase is switched over to register at the Broadcaster, we can
revert this
Change-Id: Ia471a5785f49dc85c9777ae4681616842c1addf1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171440
Tested-by: Jenkins
Reviewed-by: Michael Stahl <[email protected]>
Reviewed-by: Bjoern Michaelsen <[email protected]>
diff --git a/sw/inc/tox.hxx b/sw/inc/tox.hxx
index 44d392909341..ee0b0385599c 100644
--- a/sw/inc/tox.hxx
+++ b/sw/inc/tox.hxx
@@ -186,7 +186,7 @@ public:
SwContentFrame* FindContentFrame(const SwRootFrame& rLayout) const
{
SwContentFrame* pContentFrame = nullptr;
-
const_cast<SwTOXType*>(this)->GetNotifier().Broadcast(sw::FindContentFrameHint(pContentFrame,
rLayout));
+ CallSwClientNotify(sw::FindContentFrameHint(pContentFrame, rLayout));
return pContentFrame;
}
void
CollectTextTOXMarksForLayout(std::vector<std::reference_wrapper<SwTextTOXMark>>&
rMarks, const SwRootFrame* pLayout) const