X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/868a28262c40a7428d3991ca8a034674814bdb0a..88db66e3734d7dc8bdc965bd03e8512b64b8a48a:/src/gtk1/button.cpp diff --git a/src/gtk1/button.cpp b/src/gtk1/button.cpp index f10b170bef..034e229f18 100644 --- a/src/gtk1/button.cpp +++ b/src/gtk1/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;