From 6b606a3e27749ca2028449d22ae1fa3bcdaac8ed Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Thu, 19 Sep 2019 08:34:43 -0700 Subject: [PATCH] Fix wxBitmap pixbuf representation after changing mask with GTK3 As with GTK2, masked pixbuf needs to be purged when mask changes --- src/gtk/bitmap.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gtk/bitmap.cpp b/src/gtk/bitmap.cpp index abef7901a8..17a5c57009 100644 --- a/src/gtk/bitmap.cpp +++ b/src/gtk/bitmap.cpp @@ -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)