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