summaryrefslogtreecommitdiff
path: root/sw/source/core/txtnode
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-10-16 17:31:25 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2018-11-10 19:47:00 +0100
commitb179ea710f95a28a43d081523f488eab8adb2507 (patch)
tree946a71b7a03300455eae10f5ff656db580104c4f /sw/source/core/txtnode
parent477fcc9a99d66f3b9102c19705c96956346e3c3b (diff)
sw_redlinehide_3: invalidate footnotes in UnHideRedlines
... so the numbers are repainted, both in the document body and in the footnotes. Change-Id: I4164f1bace1b984a841f520f4832a324b811ab3f
Diffstat (limited to 'sw/source/core/txtnode')
-rw-r--r--sw/source/core/txtnode/atrftn.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/sw/source/core/txtnode/atrftn.cxx b/sw/source/core/txtnode/atrftn.cxx
index 4e86ee932ff5..697019c9d128 100644
--- a/sw/source/core/txtnode/atrftn.cxx
+++ b/sw/source/core/txtnode/atrftn.cxx
@@ -344,8 +344,13 @@ void SwTextFootnote::SetNumber(const sal_uInt16 nNewNum,
rFootnote.m_nNumber = nNewNum;
rFootnote.m_nNumberRLHidden = nNumberRLHidden;
}
+ InvalidateNumberInLayout();
+}
- OSL_ENSURE( m_pTextNode, "SwTextFootnote: where is my TextNode?" );
+void SwTextFootnote::InvalidateNumberInLayout()
+{
+ assert(m_pTextNode);
+ SwFormatFootnote const& rFootnote(GetFootnote());
SwNodes &rNodes = m_pTextNode->GetDoc()->GetNodes();
m_pTextNode->ModifyNotification( nullptr, &rFootnote );
if ( m_pStartNode )