From 7e47114d9ebcdb8851e1e196be71f48550ba6c6b Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Thu, 25 Oct 2018 13:22:23 +0200 Subject: sw_redlinehide_3: call UpdateAllFootnote() in UnHideRedlines() ... if the numbering is per-chapter, because only with a hidden layout can the footnotes be numbered properly per-hidden-chapter. Change-Id: I32732b7b8eec0adcbf4349aac3c87492802e38b6 --- sw/source/core/layout/wsfrm.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sw/source/core/layout/wsfrm.cxx b/sw/source/core/layout/wsfrm.cxx index de6e00ee77ee..bed15e7c5ece 100644 --- a/sw/source/core/layout/wsfrm.cxx +++ b/sw/source/core/layout/wsfrm.cxx @@ -4487,8 +4487,13 @@ void SwRootFrame::SetHideRedlines(bool const bHideRedlines) } } + SwFootnoteIdxs & rFootnotes(rDoc.GetFootnoteIdxs()); + if (rDoc.GetFootnoteInfo().eNum == FTNNUM_CHAPTER) + { + // sadly determining which node is outline node requires hidden layout + rFootnotes.UpdateAllFootnote(); + } // invalidate all footnotes to reformat their numbers - SwFootnoteIdxs const& rFootnotes(rDoc.GetFootnoteIdxs()); for (SwTextFootnote *const pFootnote : rFootnotes) { SwFormatFootnote const& rFootnote(pFootnote->GetFootnote()); -- cgit