mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-01 07:29:59 +02:00
LCL: Prevent range overflow in TGtkDeviceContext.FillRect. Cast Cardinal -> TColor. Issue #26897.
git-svn-id: trunk@47027 -
This commit is contained in:
parent
1bc29130cf
commit
841a604d6e
@ -30,7 +30,7 @@ uses
|
||||
// LCL
|
||||
Gtk2Extra,
|
||||
LCLIntf, LCLProc, LCLType, LCLMemManager, DynHashArray,
|
||||
GraphType, Gtk2Globals;
|
||||
GraphType, Gtk2Globals, Graphics {for TColor};
|
||||
|
||||
{$ifdef TraceGdiCalls}
|
||||
const
|
||||
|
@ -792,7 +792,7 @@ begin
|
||||
ClipArea := ClipRect;
|
||||
RemovePixbuf;
|
||||
if (CurrentBrush^.GDIBrushFill = GDK_SOLID) and
|
||||
(IsBackgroundColor(CurrentBrush^.GDIBrushColor.ColorRef)) then
|
||||
(IsBackgroundColor(TColor(CurrentBrush^.GDIBrushColor.ColorRef))) then
|
||||
StyleFillRectangle(Drawable, GC,
|
||||
CurrentBrush^.GDIBrushColor.ColorRef,
|
||||
ARect.Left + DCOrigin.X, ARect.Top + DCOrigin.Y,
|
||||
|
Loading…
Reference in New Issue
Block a user