Kaydet (Commit) fa72fc3e authored tarafından Eike Rathke's avatar Eike Rathke

OUString::startsWith() is not equivalent to String::Match()

String::Match() wasn't quite right at that place either, but..

Change-Id: I1aed325340f5f36973ef2da8fd48af3283c0b79b
üst b9e6bd79
...@@ -481,9 +481,9 @@ Color* ImpSvNumberformatScan::GetColor(OUString& sStr) ...@@ -481,9 +481,9 @@ Color* ImpSvNumberformatScan::GetColor(OUString& sStr)
if (i >= NF_MAX_DEFAULT_COLORS) if (i >= NF_MAX_DEFAULT_COLORS)
{ {
const OUString& rColorWord = rKeyword[NF_KEY_COLOR]; const OUString& rColorWord = rKeyword[NF_KEY_COLOR];
sal_Int32 nPos = sString.startsWith(rColorWord); if (sString.startsWith(rColorWord))
if (nPos > 0)
{ {
sal_Int32 nPos = rColorWord.getLength();
sStr = sStr.copy(nPos); sStr = sStr.copy(nPos);
sStr = comphelper::string::strip(sStr, ' '); sStr = comphelper::string::strip(sStr, ' ');
if (bConvertMode) if (bConvertMode)
......
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