mirror of https://github.com/buggins/dlangui.git
unittest fix
This commit is contained in:
parent
3ba090d4cb
commit
1a5acd01e7
|
@ -195,7 +195,7 @@ private bool parseColor(ref string src, ref CssValue value)
|
|||
// #rgb or #rrggbb colors
|
||||
ch = src.skip;
|
||||
int nDigits = 0;
|
||||
for ( ; nDigits < src.length && parseHexDigit(src[nDigits])>=0; nDigits++ ) {
|
||||
for ( ; nDigits < src.length && parseHexDigit(src[nDigits]) != uint.max; nDigits++ ) {
|
||||
}
|
||||
if ( nDigits==3 ) {
|
||||
int r = parseHexDigit( src[0] );
|
||||
|
|
Loading…
Reference in New Issue