Fixed error where an uninitialzed value was passed to cairo

git-svn-id: trunk@43652 -
This commit is contained in:
andrew 2014-01-05 17:26:14 +00:00
parent dbfb74e2ae
commit a597438a7e

View File

@ -1497,6 +1497,8 @@ begin
exit;
end;
Clip := CreateRectRGN(R.Left, R.Top, R.Right, R.Bottom);
Tmp := CreateEmptyRegion;
Result := CombineRGN(Tmp, HRGN(Clip), RGN, MODE);
@ -1507,6 +1509,7 @@ begin
// use code from intfbasewinapi.inc TWidgetSet.ExcludeClipRect()
// which calls this function and then combineRgn.
SelectClipRGN(DC, Tmp);
DeleteObject(Clip);
DeleteObject(Tmp);
end;
end;