svtools/source/dialogs/addresstemplate.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 60ee3d8e18b2cab428c22eb49883a5e307b8a689 Author: Matteo Casalin <matteo.casa...@yahoo.com> AuthorDate: Sat Feb 9 18:08:50 2019 +0100 Commit: Matteo Casalin <matteo.casa...@yahoo.com> CommitDate: Wed Feb 13 07:37:45 2019 +0100 Use indexed getToken() Change-Id: Ie5aa54192c537738a37e348d00642f606295d985 Reviewed-on: https://gerrit.libreoffice.org/67624 Tested-by: Jenkins Reviewed-by: Matteo Casalin <matteo.casa...@yahoo.com> diff --git a/svtools/source/dialogs/addresstemplate.cxx b/svtools/source/dialogs/addresstemplate.cxx index e6d933ba7867..74c200c29c92 100644 --- a/svtools/source/dialogs/addresstemplate.cxx +++ b/svtools/source/dialogs/addresstemplate.cxx @@ -626,8 +626,9 @@ void AssignmentPersistentData::ImplCommit() DBG_ASSERT(nAdjustedTokenCount == static_cast<sal_Int32>(m_pImpl->aFieldLabels.size()), "AddressBookSourceDialog::AddressBookSourceDialog: inconsistence between logical and UI field names!"); m_pImpl->aLogicalFieldNames.reserve(nAdjustedTokenCount); + sal_Int32 nIdx{ 0 }; for (sal_Int32 i = 0; i<nAdjustedTokenCount; ++i) - m_pImpl->aLogicalFieldNames.push_back(sLogicalFieldNames.getToken(i, ';')); + m_pImpl->aLogicalFieldNames.push_back(sLogicalFieldNames.getToken(0, ';', nIdx)); PostUserEvent(LINK(this, AddressBookSourceDialog, OnDelayedInitialize), nullptr, true); // so the dialog will at least show up before we do the loading of the _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits