X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/88f2a7714a3a6d5b5da9494f3eede8b49f978cca..780bb8744b5a9d9492831f0bd338251aa4641c56:/src/mgl/dc.cpp?ds=sidebyside diff --git a/src/mgl/dc.cpp b/src/mgl/dc.cpp index 6d1111607d..692ac021d4 100644 --- a/src/mgl/dc.cpp +++ b/src/mgl/dc.cpp @@ -1114,9 +1114,11 @@ void wxDC::SetPalette(const wxPalette& palette) void wxDC::SetFont(const wxFont& font) { - wxCHECK_RET( font.Ok(), wxT("invalid font") ); - m_font = font; - m_mglFont = NULL; + if ( font.Ok() ) + { + m_font = font; + m_mglFont = NULL; + } } void wxDC::SetBackground(const wxBrush& brush)