X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2c37aade57ad8f253a5766404300e2d6af266e69..2c1e8f2ec2400f618468e72f2faf32373f53a4c9:/src/gtk/dcclient.cpp diff --git a/src/gtk/dcclient.cpp b/src/gtk/dcclient.cpp index f01f370d2e..dc90bf665a 100644 --- a/src/gtk/dcclient.cpp +++ b/src/gtk/dcclient.cpp @@ -1580,6 +1580,8 @@ void wxWindowDC::Clear() void wxWindowDC::SetFont( const wxFont &font ) { + wxCHECK_RET( font.Ok(), _T("invalid font in wxWindowDC::SetFont") ); + m_font = font; #ifdef __WXGTK20__ // fix fontdesc?