summaryrefslogtreecommitdiff
path: root/sw/source/ui/fldui/fldfunc.cxx
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-09-14 17:00:06 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-09-25 10:00:46 +0200
commit83de03e077d219c881626de43960ae4756284371 (patch)
tree2d582083e3c060139699b075565f55f872edb7b1 /sw/source/ui/fldui/fldfunc.cxx
parent4d5e9db574bdb1a7517ffda01efe0746cc058d47 (diff)
Rename GetSelectEntryCount -> GetSelectedEntryCount
Change-Id: I405b347b404ed0acb3b6a0204e0b914a7698ce25 Reviewed-on: https://gerrit.libreoffice.org/42284 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sw/source/ui/fldui/fldfunc.cxx')
-rw-r--r--sw/source/ui/fldui/fldfunc.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/ui/fldui/fldfunc.cxx b/sw/source/ui/fldui/fldfunc.cxx
index c0a08921a92e..8b0396cad75b 100644
--- a/sw/source/ui/fldui/fldfunc.cxx
+++ b/sw/source/ui/fldui/fldfunc.cxx
@@ -256,7 +256,7 @@ IMPL_LINK_NOARG(SwFieldFuncPage, TypeHdl, ListBox&, void)
if (IsFieldEdit() && nTypeId == TYP_JUMPEDITFLD)
m_pFormatLB->SelectEntry(SwResId(FMT_MARK_ARY[GetCurField()->GetFormat()]));
- if (!m_pFormatLB->GetSelectEntryCount())
+ if (!m_pFormatLB->GetSelectedEntryCount())
m_pFormatLB->SelectEntryPos(0);
}
@@ -444,7 +444,7 @@ void SwFieldFuncPage::ListModifyHdl(Control const * pControl)
m_pListItemsLB->InsertEntry(sEntry);
m_pListItemsLB->SelectEntry(sEntry);
}
- else if(m_pListItemsLB->GetSelectEntryCount())
+ else if(m_pListItemsLB->GetSelectedEntryCount())
{
sal_Int32 nSelPos = m_pListItemsLB->GetSelectedEntryPos();
if(pControl == m_pListRemovePB)
@@ -489,7 +489,7 @@ IMPL_LINK_NOARG(SwFieldFuncPage, ListEnableHdl, Edit&, void)
//enable "Add" button when text is in the Edit that's not already member of the box
m_pListAddPB->Enable(!m_pListItemED->GetText().isEmpty() &&
LISTBOX_ENTRY_NOTFOUND == m_pListItemsLB->GetEntryPos(m_pListItemED->GetText()));
- bool bEnableButtons = m_pListItemsLB->GetSelectEntryCount() > 0;
+ bool bEnableButtons = m_pListItemsLB->GetSelectedEntryCount() > 0;
m_pListRemovePB->Enable(bEnableButtons);
m_pListUpPB->Enable(bEnableButtons && (m_pListItemsLB->GetSelectedEntryPos() > 0));
m_pListDownPB->Enable(bEnableButtons &&