Kaydet (Commit) 15ca0060 authored tarafından Justin Luth's avatar Justin Luth Kaydeden (comit) Michael Stahl

tdf#43370 docfnote.cxx: return correct FTNNUM for GetNumbering

way back in 2001 commit a7afc46b
removed the option to select per-chapter footnote-numbering for
footnotes placed at the end of the document (or perhaps chapter
since the variable is called FTNPOS_CHAPTER, but the UI refers to
it as document).  So only "Per Document" remained. However the
function GetNumbering was never updated to reflect that fact that
2 options were removed from the list now, instead of one.

So, the UI reported the choice as "Per Page", the only dropdown choice
available was "Per Document", and the actual implemented choice
was "Per Chapter".  How's that for a mess?

Change-Id: Ib8dc3d07c0ef62d39afdd2a1c78c14527649c6df
Reviewed-on: https://gerrit.libreoffice.org/32700Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJustin Luth <justin_luth@sil.org>
Tested-by: 's avatarJustin Luth <justin_luth@sil.org>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 49f10e92
...@@ -276,7 +276,7 @@ void SwEndNoteOptionPage::SelectNumbering(int eNum) ...@@ -276,7 +276,7 @@ void SwEndNoteOptionPage::SelectNumbering(int eNum)
int SwEndNoteOptionPage::GetNumbering() const int SwEndNoteOptionPage::GetNumbering() const
{ {
const sal_Int32 nPos = m_pNumCountBox->GetSelectEntryPos(); const sal_Int32 nPos = m_pNumCountBox->GetSelectEntryPos();
return (int) bPosDoc? nPos + 1: nPos; return (int) bPosDoc? nPos + 2: nPos;
} }
void SwEndNoteOptionPage::SetShell( SwWrtShell &rShell ) void SwEndNoteOptionPage::SetShell( SwWrtShell &rShell )
......
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