summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@libreoffice.org>2024-08-02 23:13:22 +0200
committerBjoern Michaelsen <bjoern.michaelsen@libreoffice.org>2024-08-05 16:34:56 +0200
commitf965f2d5be13e191ae6cc284f048d3731d74d190 (patch)
tree43d3d152cd4ef28ca341ed331d22bce4b3dd3452
parentcb7c70cd19237268b748d3e35f8bbed2150042ea (diff)
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 <michael.stahl@allotropia.de> Reviewed-by: Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
-rw-r--r--sw/inc/tox.hxx2
1 files changed, 1 insertions, 1 deletions
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