mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-21 04:19:18 +02:00
gtk: protect themeservices from empty rect
git-svn-id: trunk@20391 -
This commit is contained in:
parent
f18b730234
commit
da300289b7
@ -446,6 +446,8 @@ var
|
|||||||
StyleParams: TGtkStyleParams;
|
StyleParams: TGtkStyleParams;
|
||||||
i: integer;
|
i: integer;
|
||||||
begin
|
begin
|
||||||
|
if IsRectEmpty(R) then
|
||||||
|
Exit;
|
||||||
for i := 0 to GetParamsCount(Details) - 1 do
|
for i := 0 to GetParamsCount(Details) - 1 do
|
||||||
begin
|
begin
|
||||||
StyleParams := GetGtkStyleParams(DC, Details, i);
|
StyleParams := GetGtkStyleParams(DC, Details, i);
|
||||||
|
Loading…
Reference in New Issue
Block a user