From 1cc29a04adb721205655091854f5ea828bb8eb11 Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Tue, 13 Jan 2015 14:49:07 +0100 Subject: 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 --- forms/source/component/ListBox.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'forms') 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 ) -- cgit