summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2015-01-13 14:49:07 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2015-01-13 14:59:03 +0100
commit1cc29a04adb721205655091854f5ea828bb8eb11 (patch)
treecbf2a61a0a8bde06ef874dc813fb117d80050b6c /forms
parent5cd4ab7f5cf8a288ae7941d5a1dd752bf2fc852d (diff)
ListBox: refuse to give values before we are loaded
If we are not loaded, we don't know our field type, so cannot give values with the right type Change-Id: I372b77647ec8ff7428b67cca72fdd89e5e147a32
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/ListBox.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx
index 3235ffe814ce..d6eb7cf7860e 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -1058,6 +1058,9 @@ namespace frm
ValueList OListBoxModel::impl_getValues() const
{
+ if (!isLoaded())
+ return ValueList();
+
const sal_Int32 nFieldType = getValueType();
if ( !m_aConvertedBoundValues.empty() && m_nConvertedBoundValuesType == nFieldType )