diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2019-03-09 08:40:50 +0100 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2019-03-10 21:17:03 +0100 |
commit | 7e70b40d68469a53895197ef3ef804616793d0d6 (patch) | |
tree | bcd13451e1e0eeb8ca45dc140c41feb50ee0745d /sw/source/ui | |
parent | c300dc4338e878dd87d638f085b8093a79544378 (diff) |
MSForms: Fix removal of all items on the drop-down form field dialog
Change-Id: Idbb9cb80fd842bc01ee857709a825821c2bcffd2
Reviewed-on: https://gerrit.libreoffice.org/69009
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'sw/source/ui')
-rw-r--r-- | sw/source/ui/fldui/DropDownFormFieldDialog.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/fldui/DropDownFormFieldDialog.cxx b/sw/source/ui/fldui/DropDownFormFieldDialog.cxx index 4b6c848feefb..8bbb73b066f9 100644 --- a/sw/source/ui/fldui/DropDownFormFieldDialog.cxx +++ b/sw/source/ui/fldui/DropDownFormFieldDialog.cxx @@ -71,7 +71,7 @@ IMPL_LINK(DropDownFormFieldDialog, ButtonPushedHdl, weld::Button&, rButton, void if (&rButton == m_xListRemoveButton.get()) { m_xListItemsTreeView->remove(nSelPos); - m_xListItemsTreeView->select(nSelPos > 0 ? nSelPos - 1 : 0); + m_xListItemsTreeView->select(nSelPos - 1); } else if (&rButton == m_xListUpButton.get()) { |