summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-10-25 13:22:23 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2018-11-15 15:10:02 +0100
commit7e47114d9ebcdb8851e1e196be71f48550ba6c6b (patch)
tree9607fe62373ab5024c85ed9783103fb0b61fc789
parentadfa410f3dc99f296bc1f32614e3d14cc5384167 (diff)
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
-rw-r--r--sw/source/core/layout/wsfrm.cxx7
1 files changed, 6 insertions, 1 deletions
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());