mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-10 15:57:27 +01:00
LCL: fixed range check
git-svn-id: trunk@26560 -
This commit is contained in:
parent
6b52b6b9e8
commit
167f3c4528
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user