mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 05:56:02 +02:00
Fixed error where an uninitialzed value was passed to cairo
git-svn-id: trunk@43652 -
This commit is contained in:
parent
dbfb74e2ae
commit
a597438a7e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user