diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2013-05-12 04:32:24 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2013-05-12 05:07:55 +0200 |
commit | 3e5b9865fa6e1f7de77ebe1464b4eb964ff61006 (patch) | |
tree | a7e9530683038a1519e5db9aa2c507e376de88b7 /forms/source | |
parent | janitorial: correct method name in assert message (diff) | |
download | core-3e5b9865fa6e1f7de77ebe1464b4eb964ff61006.tar.gz core-3e5b9865fa6e1f7de77ebe1464b4eb964ff61006.zip |
fdo#64456 impl_getValues always set m_nConvertedBoundValuesType
That is, also when returning an ephemeral value constructed from StringItemList
Change-Id: I3f0edcb6cc31926c6b82acbcb88282829314b859
Diffstat (limited to 'forms/source')
-rw-r--r-- | forms/source/component/ListBox.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx index f26a57469b4a..ee7c32709561 100644 --- a/forms/source/component/ListBox.cxx +++ b/forms/source/component/ListBox.cxx @@ -1026,6 +1026,7 @@ namespace frm } m_nConvertedBoundValuesType = nFieldType; OSL_ENSURE(dst == m_aConvertedBoundValues.end(), "OListBoxModel::convertBoundValues expected to have overwritten all of m_aConvertedBoundValues, but did not."); + assert(dst == m_aConvertedBoundValues.end()); } //------------------------------------------------------------------------------ sal_Int32 OListBoxModel::getValueType() const @@ -1056,6 +1057,9 @@ namespace frm *dst = *src; dst->setTypeKind(nFieldType); } + m_nConvertedBoundValuesType = nFieldType; + OSL_ENSURE(dst == aValues.end(), "OListBoxModel::impl_getValues expected to have set all of aValues, but did not."); + assert(dst == aValues.end()); return aValues; } //------------------------------------------------------------------------------ |