mirror of
https://github.com/audacity/wxWidgets.git
synced 2025-12-10 21:09:32 -06:00
Reset wxStaticBitmap image when passed empty bitmap in wxGTK
This makes the behaviour consistent with the other ports. Closes #17420.
This commit is contained in:
parent
5d9c578df3
commit
59b29a3a71
@ -59,15 +59,15 @@ void wxStaticBitmap::SetBitmap( const wxBitmap &bitmap )
|
||||
{
|
||||
m_bitmap = bitmap;
|
||||
|
||||
// always use pixbuf, because pixmap mask does not
|
||||
// work with disabled images in some themes
|
||||
if (m_bitmap.IsOk())
|
||||
{
|
||||
// always use pixbuf, because pixmap mask does not
|
||||
// work with disabled images in some themes
|
||||
gtk_image_set_from_pixbuf(GTK_IMAGE(m_widget), m_bitmap.GetPixbuf());
|
||||
else
|
||||
gtk_image_set_from_pixbuf(GTK_IMAGE(m_widget), NULL);
|
||||
|
||||
InvalidateBestSize();
|
||||
SetSize(GetBestSize());
|
||||
}
|
||||
InvalidateBestSize();
|
||||
SetSize(GetBestSize());
|
||||
}
|
||||
|
||||
// static
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user