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
This commit is contained in:
Lionel Elie Mamane
2015-01-13 14:49:07 +01:00
parent 5cd4ab7f5c
commit 1cc29a04ad

View File

@@ -1058,6 +1058,9 @@ namespace frm
ValueList OListBoxModel::impl_getValues() const ValueList OListBoxModel::impl_getValues() const
{ {
if (!isLoaded())
return ValueList();
const sal_Int32 nFieldType = getValueType(); const sal_Int32 nFieldType = getValueType();
if ( !m_aConvertedBoundValues.empty() && m_nConvertedBoundValuesType == nFieldType ) if ( !m_aConvertedBoundValues.empty() && m_nConvertedBoundValuesType == nFieldType )