From 60ee3d8e18b2cab428c22eb49883a5e307b8a689 Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Sat, 9 Feb 2019 18:08:50 +0100 Subject: Use indexed getToken() Change-Id: Ie5aa54192c537738a37e348d00642f606295d985 Reviewed-on: https://gerrit.libreoffice.org/67624 Tested-by: Jenkins Reviewed-by: Matteo Casalin --- svtools/source/dialogs/addresstemplate.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(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; iaLogicalFieldNames.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 -- cgit