diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-05 22:50:17 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-08 13:04:43 +0100 |
commit | 13ff96fe03674791cb597039ce01d3f8e76fd279 (patch) | |
tree | dc7e91145b76aea610bac352d231f583add9d565 /dbaccess | |
parent | use SAL_N_ELEMENTS (diff) | |
download | core-13ff96fe03674791cb597039ce01d3f8e76fd279.tar.gz core-13ff96fe03674791cb597039ce01d3f8e76fd279.zip |
fix assert, names expected to be sorted
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/browser/unodatbr.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx index 99c004bd9ccc..fe35d71f2908 100644 --- a/dbaccess/source/ui/browser/unodatbr.cxx +++ b/dbaccess/source/ui/browser/unodatbr.cxx @@ -590,7 +590,8 @@ sal_Bool SbaTableQueryBrowser::InitializeForm( const Reference< XPropertySet > & aPropertyValues.put( aTransferProperties[i], pData->xObjectProperties->getPropertyValue( aTransferProperties[i] ) ); } - const ::std::vector< ::rtl::OUString > aNames( aPropertyValues.getNames() ); + ::std::vector< ::rtl::OUString > aNames( aPropertyValues.getNames() ); + ::std::sort(aNames.begin(), aNames.end()); Sequence< ::rtl::OUString > aPropNames( aNames.size() ); ::std::copy( aNames.begin(), aNames.end(), aPropNames.getArray() ); |