diff options
Diffstat (limited to 'sw/source/ui/fldui/DropDownFieldDialog.cxx')
-rw-r--r-- | sw/source/ui/fldui/DropDownFieldDialog.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/fldui/DropDownFieldDialog.cxx b/sw/source/ui/fldui/DropDownFieldDialog.cxx index d21758e062dc..d467cfa3470e 100644 --- a/sw/source/ui/fldui/DropDownFieldDialog.cxx +++ b/sw/source/ui/fldui/DropDownFieldDialog.cxx @@ -70,7 +70,7 @@ sw::DropDownFieldDialog::DropDownFieldDialog(weld::Window *pParent, SwWrtShell & const OUString* pArray = aItems.getConstArray(); for (sal_Int32 i = 0; i < aItems.getLength(); ++i) m_xListItemsLB->append_text(pArray[i]); - m_xListItemsLB->select(m_pDropField->GetSelectedItem()); + m_xListItemsLB->select_text(m_pDropField->GetSelectedItem()); } bool bEnable = !m_rSh.IsCursorReadonly(); @@ -87,7 +87,7 @@ void sw::DropDownFieldDialog::Apply() { if (m_pDropField) { - OUString sSelect = m_xListItemsLB->get_selected(); + OUString sSelect = m_xListItemsLB->get_selected_text(); if (m_pDropField->GetPar1() != sSelect) { m_rSh.StartAllAction(); |