diff --git a/src/gtk/image_gtk.cpp b/src/gtk/image_gtk.cpp index c6568ce18b..d046c16632 100644 --- a/src/gtk/image_gtk.cpp +++ b/src/gtk/image_gtk.cpp @@ -130,11 +130,16 @@ static gboolean wxGtkImageDraw(GtkWidget* widget, GdkEventExpose* event) #endif const wxBitmap bitmap(image->m_provider->Get(scale)); -#ifndef __WXGTK3__ - // We rely on GTK to draw default disabled images if (!bitmap.IsOk()) + { +#ifdef __WXGTK3__ + // Missing bitmap, just do the default + return wxGtkImageParentClass->draw(widget, cr); +#else + // We rely on GTK to draw default disabled images return wxGtkImageParentClass->expose_event(widget, event); #endif + } GtkAllocation alloc; gtk_widget_get_allocation(widget, &alloc);