summaryrefslogtreecommitdiffstats
path: root/forms/source/component/ListBox.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-08 10:38:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-08 09:49:48 +0000
commitbbf6c5171706e55edcf8e011a536264f4f2efd99 (patch)
tree086e73ba7bcfb3a489b3e2523708e2a088245618 /forms/source/component/ListBox.cxx
parentcoverity#1394269 Uncaught exception (diff)
downloadcore-bbf6c5171706e55edcf8e011a536264f4f2efd99.tar.gz
core-bbf6c5171706e55edcf8e011a536264f4f2efd99.zip
loplugin:expandablemethods in forms..formula
Change-Id: Idc948ad06913def28cb642c3a4e5ea9322b9fb3b Reviewed-on: https://gerrit.libreoffice.org/30688 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'forms/source/component/ListBox.cxx')
-rw-r--r--forms/source/component/ListBox.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx
index fcfe5c8de178..4ad80031f502 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -1062,7 +1062,7 @@ namespace frm
sal_Int32 OListBoxModel::getValueType() const
{
- return impl_hasBoundComponent() ? m_nBoundColumnType : getFieldType();
+ return (m_nBoundColumnType != css::sdbc::DataType::SQLNULL) ? m_nBoundColumnType : getFieldType();
}
ValueList OListBoxModel::impl_getValues() const