From f76cedf1d61da5fcca788864fe659c4157534696 Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Sun, 23 Jun 2013 20:00:36 +0200 Subject: Data-aware ListBox: fix case ListSourceType==TableFields Change-Id: I9a89374fd1cc56c8185753f5959275a0a2d841ff --- forms/source/component/ListBox.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'forms') diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx index 3ac34f89cb45..e2d800a98d37 100644 --- a/forms/source/component/ListBox.cxx +++ b/forms/source/component/ListBox.cxx @@ -937,6 +937,18 @@ namespace frm seqNames.getConstArray() + seqNames.getLength(), ::std::insert_iterator< ValueList >( aDisplayList, aDisplayList.end() ) ); + if(*aBoundColumn == -1) + { + // the type of i matters! It will be the type of the ORowSetValue pushed to aValueList! + for(sal_Int16 i=0; i < aDisplayList.size(); ++i) + { + aValueList.push_back(i); + } + } + else + { + aValueList = aDisplayList; + } } } break; -- cgit v1.2.3