Fix wxBitmap pixbuf representation after changing mask with GTK3

As with GTK2, masked pixbuf needs to be purged when mask changes
This commit is contained in:
Paul Cornett 2019-09-19 08:34:43 -07:00
parent 6d44e9a1c6
commit 6b606a3e27

View File

@ -960,13 +960,11 @@ void wxBitmap::SetMask( wxMask *mask )
AllocExclusive();
delete M_BMPDATA->m_mask;
M_BMPDATA->m_mask = mask;
#ifndef __WXGTK3__
if (M_BMPDATA->m_pixbufMask)
{
g_object_unref(M_BMPDATA->m_pixbufMask);
M_BMPDATA->m_pixbufMask = NULL;
}
#endif
}
bool wxBitmap::CopyFromIcon(const wxIcon& icon)