mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-27 11:50:26 +02:00
gtk2: fix potential bug in TGtkDeviceContext.SelectBitmap
git-svn-id: trunk@43653 -
This commit is contained in:
parent
a597438a7e
commit
849077bfc5
@ -1001,7 +1001,7 @@ end;
|
||||
|
||||
function TGtkDeviceContext.SelectBitmap(AGdiObject: PGdiObject): PGdiObject;
|
||||
var
|
||||
NewPixbuf: PGdkPixbuf = nil;
|
||||
NewPixbuf: PGdkPixbuf;
|
||||
NewDrawable: PGdkPixmap;
|
||||
Mask: PGdkBitmap;
|
||||
begin
|
||||
@ -1009,6 +1009,7 @@ begin
|
||||
Result := GetBitmap;
|
||||
if CurrentBitmap = AGDIObject then Exit;
|
||||
|
||||
NewPixbuf := nil;
|
||||
CurrentBitmap := AGDIObject;
|
||||
with FCurrentBitmap^ do
|
||||
case GDIBitmapType of
|
||||
|
Loading…
Reference in New Issue
Block a user