From ef6d2181cb426abc2187341cc271d1d72f3c12aa Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 13 May 2020 15:40:02 +0100 Subject: surround switch is keyed on m_nControlClass so set directly to known true/false MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ia1fa2439a88912a933bc90e3b16bea3b30a403f8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94142 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- svx/source/fmcomp/gridcell.cxx | 4 ++-- 1 file 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::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(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(m_pWindow.get())->SetDropDownLineCount(nLines); } else -- cgit