gtk2: fix potential bug in TGtkDeviceContext.SelectBitmap

git-svn-id: trunk@43653 -
This commit is contained in:
paul 2014-01-06 09:34:05 +00:00
parent a597438a7e
commit 849077bfc5

View File

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