LCL: fixed range check

git-svn-id: trunk@26560 -
This commit is contained in:
mattias 2010-07-09 23:11:30 +00:00
parent 6b52b6b9e8
commit 167f3c4528

View File

@ -235,7 +235,7 @@ begin
begin
if LogBrush.lbStyle <> BS_PATTERN then
if (LogBrush.lbStyle = BS_SOLID) and IsSysColor(LogBrush.lbColor) then
FReference._lclHandle := GetSysColorBrush(SysColorToSysColorIndex(LogBrush.lbColor))
FReference._lclHandle := TLCLHandle(GetSysColorBrush(SysColorToSysColorIndex(LogBrush.lbColor)))
else
FReference._lclHandle := TLCLHandle(CreateBrushIndirect(LogBrush))
else