Kaydet (Commit) 69a16331 authored tarafından Caolán McNamara's avatar Caolán McNamara

don't access contents of empty string, e.g. with kde96709-1.html

Change-Id: Ifa6db0dc7b5c67b65c5bc17c16fb3a61793c833a
üst 5456abc4
......@@ -233,8 +233,8 @@ void HTMLOption::GetColor( Color& rColor ) const
OUString aTmp(aValue.toAsciiLowerCase());
sal_uInt32 nColor = SAL_MAX_UINT32;
if( '#' != aTmp[0] )
nColor = GetHTMLColor( aTmp );
if (!aTmp.isEmpty() && aTmp[0] != '#')
nColor = GetHTMLColor(aTmp);
if( SAL_MAX_UINT32 == nColor )
{
......
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