extensions/source/propctrlr/formcomponenthandler.cxx | 3 +-- forms/source/component/ListBox.cxx | 12 ++++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-)
New commits: commit f76cedf1d61da5fcca788864fe659c4157534696 Author: Lionel Elie Mamane <lio...@mamane.lu> Date: Sun Jun 23 20:00:36 2013 +0200 Data-aware ListBox: fix case ListSourceType==TableFields Change-Id: I9a89374fd1cc56c8185753f5959275a0a2d841ff diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx index 2f0ad22..aaa0e94 100644 --- a/extensions/source/propctrlr/formcomponenthandler.cxx +++ b/extensions/source/propctrlr/formcomponenthandler.cxx @@ -1841,8 +1841,7 @@ namespace pcr OSL_VERIFY( impl_getPropertyValue_throw( PROPERTY_LISTSOURCETYPE ) >>= eLSType ); _rxInspectorUI->enablePropertyUI( PROPERTY_BOUNDCOLUMN, - ( eLSType != ListSourceType_TABLEFIELDS ) - && ( eLSType != ListSourceType_VALUELIST ) + ( eLSType != ListSourceType_VALUELIST ) ); } break; // case PROPERTY_ID_BOUNDCOLUMN diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx index 3ac34f8..e2d800a 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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits