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:
parent
6d44e9a1c6
commit
6b606a3e27
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user