LCL-Gtk2: make FillRect (winapi emulation) work even when current DC's brush is null, issue #40823, patch by Artem Izmaylov

This commit is contained in:
Maxim Ganetsky 2024-03-07 16:38:07 +03:00
parent ca5ac00672
commit b70f3fdbe6

View File

@ -773,7 +773,7 @@ var
ClipArea: TGdkRectangle;
begin
BrushChanged := False;
if not IsNullBrush then
if (ABrush <> 0) and not PGdiObject(ABrush)^.IsNullBrush then
begin
if FHasTransf then
begin