sw/source/uibase/utlui/content.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit cf636b3f5b033d1f1bf511958df96391d81b04df Author: Jim Raykowski <rayk...@gmail.com> AuthorDate: Wed Nov 10 17:50:48 2021 -0900 Commit: Jim Raykowski <rayk...@gmail.com> CommitDate: Thu Nov 11 07:00:25 2021 +0100 SwNavigator: account for footnotes separator line in initial count The separator line needs to be accounted for in the initial footnotes members count to be shown without delay on first footnote insert and on first display of the content tree when there are only footnotes, no endnotes, in the document and also for the last endnote to be shown without delay on first display of the content tree. Change-Id: I09a5ad8a0cb4463518a91d680741b49b572cadc9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125019 Tested-by: Jenkins Reviewed-by: Jim Raykowski <rayk...@gmail.com> diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index f877617e13a5..f938d8e2617a 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -417,12 +417,14 @@ void SwContentType::Init(bool* pbInvalidateWindow) break; case ContentTypeId::FOOTNOTE: { - m_nMemberCount = 0; m_sTypeToken.clear(); m_bEdit = true; m_bDelete = false; const SwFootnoteIdxs& rFootnoteIdxs = m_pWrtShell->GetDoc()->GetFootnoteIdxs(); m_nMemberCount = rFootnoteIdxs.size(); + // account for the separator line + if (m_nMemberCount > 0) + m_nMemberCount++; } break; case ContentTypeId::BOOKMARK: