diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx index 890e901a587a..724b6c8f54be 100644 --- a/forms/source/component/ListBox.cxx +++ b/forms/source/component/ListBox.cxx @@ -943,7 +943,7 @@ namespace frm // the type of i matters! It will be the type of the ORowSetValue pushed to aValueList! for(size_t i=0; i < aDisplayList.size(); ++i) { - aValueList.push_back(static_cast(i)); + aValueList.push_back(ORowSetValue(sal_Int16(i))); } } else