OUString::startsWith() is not equivalent to String::Match()
String::Match() wasn't quite right at that place either, but..
Change-Id: I1aed325340f5f36973ef2da8fd48af3283c0b79b
diff --git a/svl/source/numbers/zforscan.cxx b/svl/source/numbers/zforscan.cxx
index 43a4bbc..a0d44db 100644
--- a/svl/source/numbers/zforscan.cxx
+++ b/svl/source/numbers/zforscan.cxx
@@ -481,9 +481,9 @@ Color* ImpSvNumberformatScan::GetColor(OUString& sStr)
if (i >= NF_MAX_DEFAULT_COLORS)
{
const OUString& rColorWord = rKeyword[NF_KEY_COLOR];
sal_Int32 nPos = sString.startsWith(rColorWord);
if (nPos > 0)
if (sString.startsWith(rColorWord))
{
sal_Int32 nPos = rColorWord.getLength();
sStr = sStr.copy(nPos);
sStr = comphelper::string::strip(sStr, ' ');
if (bConvertMode)