gtk: protect themeservices from empty rect

git-svn-id: trunk@20391 -
This commit is contained in:
paul 2009-06-04 02:10:23 +00:00
parent f18b730234
commit da300289b7

View File

@ -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);