diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-10-16 17:31:25 +0200 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-11-15 15:10:00 +0100 |
commit | 2fcde5fa432a3928605bfb6f22d30dc07b9c1652 (patch) | |
tree | 7914a93f7f18db5b3a38398eb570ac588bdb49b5 /sw/source/core/layout | |
parent | c7314f8903ad251429a81a340c93f1b1121c20a7 (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/layout')
-rw-r--r-- | sw/source/core/layout/wsfrm.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sw/source/core/layout/wsfrm.cxx b/sw/source/core/layout/wsfrm.cxx index 69f6b1185134..9b81ed2131d9 100644 --- a/sw/source/core/layout/wsfrm.cxx +++ b/sw/source/core/layout/wsfrm.cxx @@ -35,6 +35,7 @@ #include <fesh.hxx> #include <docsh.hxx> #include <ftninfo.hxx> +#include <ftnidx.hxx> #include <fmtclbl.hxx> #include <fmtfsize.hxx> #include <fmtpdsc.hxx> @@ -4481,6 +4482,18 @@ void SwRootFrame::SetHideRedlines(bool const bHideRedlines) } } + // invalidate all footnotes to reformat their numbers + SwFootnoteIdxs const& rFootnotes(rDoc.GetFootnoteIdxs()); + for (SwTextFootnote *const pFootnote : rFootnotes) + { + SwFormatFootnote const& rFootnote(pFootnote->GetFootnote()); + if (rFootnote.GetNumber() != rFootnote.GetNumberRLHidden() + && rFootnote.GetNumStr().isEmpty()) + { + pFootnote->InvalidateNumberInLayout(); + } + } + // InvalidateAllContent(SwInvalidateFlags::Size); // ??? TODO what to invalidate? this is the big hammer } |