Kaydet (Commit) 930d691d authored tarafından Matteo Casalin's avatar Matteo Casalin

Don't get the same token twice

Change-Id: I81e3b909529a48a60c80f55b3644f3477a77418a
Reviewed-on: https://gerrit.libreoffice.org/67306
Tested-by: Jenkins
Reviewed-by: 's avatarMatteo Casalin <matteo.casalin@yahoo.com>
üst 579a2ff4
......@@ -690,15 +690,16 @@ void SwGlossaryDlg::Init()
OUString sGroupName(pGlossaryHdl->GetGroupName(nId, &sTitle));
if(sGroupName.isEmpty())
continue;
const OUString sName{ sGroupName.getToken( 0, GLOS_DELIM ) };
if(sTitle.isEmpty())
sTitle = sGroupName.getToken( 0, GLOS_DELIM );
sTitle = sName;
if(sTitle == sMyAutoTextEnglish)
sTitle = sMyAutoTextTranslated;
SvTreeListEntry* pEntry = m_pCategoryBox->InsertEntry( sTitle );
const sal_Int32 nPath = sGroupName.getToken( 1, GLOS_DELIM ).toInt32();
GroupUserData* pData = new GroupUserData;
pData->sGroupName = sGroupName.getToken(0, GLOS_DELIM);
pData->sGroupName = sName;
pData->nPathIdx = static_cast< sal_uInt16 >(nPath);
pData->bReadonly = pGlossaryHdl->IsReadOnly(&sGroupName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment