is the problem in Epython_wrap_bitmap?

This commit is contained in:
Amy Bowersox 2019-12-11 14:16:25 -07:00
parent 0dd8d45898
commit a8a5206b89

View File

@ -158,8 +158,10 @@ static PyObject *devctxt_select_bitmap(DevCtxtObject *self, BitmapObject *newbmp
{
Log(LDEBUG, "need to wrap old bitmap");
old_bitmap = (BitmapObject *)Epython_wrap_bitmap(old_pbmp);
Log(LDEBUG, "wrapper finished");
if (!old_bitmap)
{
Log(LDEBUG, "wrapper failed");
DC_SelectObject(self->pdctxt, (PGFXOBJECT)old_pbmp);
return NULL;
}