Kaydet (Commit) b585a980 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Doing this will handle empty sub strings correctly.

üst 344edada
......@@ -79,12 +79,15 @@ void ScUserListData::InitTokens()
nLen = 0;
bFirst = false;
}
if (*p == cSep && nLen)
if (*p == cSep)
{
OUString aSub(p0, nLen);
String aUpStr = aSub;
ScGlobal::pCharClass->toUpper(aUpStr);
maSubStrings.push_back(new SubStr(aSub, aUpStr));
if (nLen)
{
OUString aSub(p0, nLen);
String aUpStr = aSub;
ScGlobal::pCharClass->toUpper(aUpStr);
maSubStrings.push_back(new SubStr(aSub, aUpStr));
}
bFirst = true;
}
}
......
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