X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/868a28262c40a7428d3991ca8a034674814bdb0a..520e470fdd0daef09c77938db642e4583933c90d:/src/gtk/button.cpp diff --git a/src/gtk/button.cpp b/src/gtk/button.cpp index f10b170bef..034e229f18 100644 --- a/src/gtk/button.cpp +++ b/src/gtk/button.cpp @@ -105,8 +105,11 @@ void wxButton::Enable( bool enable ) void wxButton::SetFont( const wxFont &font ) { - m_font = font; - + if (((wxFont*)&font)->Ok()) + m_font = font; + else + m_font = *wxSWISS_FONT; + GtkButton *bin = GTK_BUTTON( m_widget ); GtkWidget *label = bin->child;