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

Use getToken with start position

Change-Id: I6c8d928f7b5f0e8abaa2ce2d71096ed2ec666911
üst ee84ba76
......@@ -214,8 +214,9 @@ void SwMultiTOXTabDialog::CreateOrUpdateExample(
comphelper::string::getTokenCount(sLevel, TOX_STYLE_DELIMITER);
uno::Sequence<OUString> aStyles(nStyles);
OUString* pArr = aStyles.getArray();
for(sal_Int32 nStyle = 0; nStyle < nStyles; nStyle++)
pArr[nStyle] = sLevel.getToken(nStyle, TOX_STYLE_DELIMITER);
sal_Int32 nPos {0};
for(sal_Int32 nStyle = 0; nStyle < nStyles; ++nStyle)
pArr[nStyle] = sLevel.getToken(0, TOX_STYLE_DELIMITER, nPos);
uno::Any aAny(&aStyles, cppu::UnoType<uno::Sequence<OUString>>::get());
xAcc->replaceByIndex(i, aAny);
}
......
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