cui/source/options/dbregister.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 0d9850a3254a3ec3f4cacbfb687afe8e16b7503c Author: Matteo Casalin <matteo.casa...@yahoo.com> AuthorDate: Thu Dec 27 21:13:02 2018 +0100 Commit: Matteo Casalin <matteo.casa...@yahoo.com> CommitDate: Fri Dec 28 17:13:44 2018 +0100 Use indexed getToken Change-Id: I4eec0cf92ca0ff4af00b5db4c039db072d8cba39 Reviewed-on: https://gerrit.libreoffice.org/65676 Tested-by: Jenkins Reviewed-by: Matteo Casalin <matteo.casa...@yahoo.com> diff --git a/cui/source/options/dbregister.cxx b/cui/source/options/dbregister.cxx index d31876dadd98..a30e059c7c10 100644 --- a/cui/source/options/dbregister.cxx +++ b/cui/source/options/dbregister.cxx @@ -230,12 +230,12 @@ void DbRegistrationOptionsPage::Reset( const SfxItemSet* rSet ) if ( !aUserData.isEmpty() ) { HeaderBar &rBar = m_pPathBox->GetTheHeaderBar(); - + sal_Int32 nIdx {0}; // restore column width - rBar.SetItemSize( ITEMID_TYPE, aUserData.getToken(0, ';').toInt32() ); + rBar.SetItemSize( ITEMID_TYPE, aUserData.getToken(0, ';', nIdx).toInt32() ); HeaderEndDrag_Impl( &rBar ); // restore sort direction - bool bUp = aUserData.getToken(1, ';').toInt32() != 0; + bool bUp = aUserData.getToken(0, ';', nIdx).toInt32() != 0; HeaderBarItemBits nBits = rBar.GetItemBits(ITEMID_TYPE); if ( bUp ) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits