Kaydet (Commit) 7e47114d authored tarafından Michael Stahl's avatar Michael Stahl

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
üst adfa410f
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment