diff options
author | Justin Luth <justin_luth@sil.org> | 2017-01-03 15:24:48 +0300 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-01-04 14:24:33 +0000 |
commit | 15ca00601701c50ccdb3d8dbe08ba705787386a7 (patch) | |
tree | b43f07d87cb8e97b90190469871be4ddc0b5817e | |
parent | 49f10e92dc1a9bd563f4a8620f6e6019e5d6a683 (diff) |
tdf#43370 docfnote.cxx: return correct FTNNUM for GetNumbering
way back in 2001 commit a7afc46b3766e4000ae5a9b8a914ede36bbd2991
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/32700
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Justin Luth <justin_luth@sil.org>
Tested-by: Justin Luth <justin_luth@sil.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r-- | sw/source/ui/misc/docfnote.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/misc/docfnote.cxx b/sw/source/ui/misc/docfnote.cxx index 30f053bf4a57..9feb8a1273ee 100644 --- a/sw/source/ui/misc/docfnote.cxx +++ b/sw/source/ui/misc/docfnote.cxx @@ -276,7 +276,7 @@ void SwEndNoteOptionPage::SelectNumbering(int eNum) int SwEndNoteOptionPage::GetNumbering() const { const sal_Int32 nPos = m_pNumCountBox->GetSelectEntryPos(); - return (int) bPosDoc? nPos + 1: nPos; + return (int) bPosDoc? nPos + 2: nPos; } void SwEndNoteOptionPage::SetShell( SwWrtShell &rShell ) |