diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2015-01-13 14:49:07 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2015-01-13 14:59:03 +0100 |
commit | 1cc29a04adb721205655091854f5ea828bb8eb11 (patch) | |
tree | cbf2a61a0a8bde06ef874dc813fb117d80050b6c /forms | |
parent | 5cd4ab7f5cf8a288ae7941d5a1dd752bf2fc852d (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.cxx | 3 |
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 ) |