summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-05-13 15:40:02 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-05-13 20:31:36 +0200
commitef6d2181cb426abc2187341cc271d1d72f3c12aa (patch)
treec6d53611a346835c61cf910dc4c076b2ae9664c9
parent48ee17acde5189318963f302ed6f987c11f3a39f (diff)
surround switch is keyed on m_nControlClass so set directly to known true/false
Change-Id: Ia1fa2439a88912a933bc90e3b16bea3b30a403f8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94142 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--svx/source/fmcomp/gridcell.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx
index de8c41262e35..24eebf68fba2 100644
--- a/svx/source/fmcomp/gridcell.cxx
+++ b/svx/source/fmcomp/gridcell.cxx
@@ -2730,7 +2730,7 @@ void DbFilterField::CreateControl(vcl::Window* pParent, const Reference< css::be
m_pWindow = VclPtr<ListBoxControl>::Create(pParent);
sal_Int16 nLines = ::comphelper::getINT16(xModel->getPropertyValue(FM_PROP_LINECOUNT));
Any aItems = xModel->getPropertyValue(FM_PROP_STRINGITEMLIST);
- SetList(aItems, m_nControlClass == css::form::FormComponentType::COMBOBOX);
+ SetList(aItems, false);
static_cast<ListBox*>(m_pWindow.get())->SetDropDownLineCount(nLines);
} break;
case css::form::FormComponentType::COMBOBOX:
@@ -2748,7 +2748,7 @@ void DbFilterField::CreateControl(vcl::Window* pParent, const Reference< css::be
{
sal_Int16 nLines = ::comphelper::getINT16(xModel->getPropertyValue(FM_PROP_LINECOUNT));
Any aItems = xModel->getPropertyValue(FM_PROP_STRINGITEMLIST);
- SetList(aItems, m_nControlClass == css::form::FormComponentType::COMBOBOX);
+ SetList(aItems, true);
static_cast<ComboBox*>(m_pWindow.get())->SetDropDownLineCount(nLines);
}
else