X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2c37aade57ad8f253a5766404300e2d6af266e69..0e0bc921908ab73cac0cd14f00ac448c83fdec35:/src/gtk1/dcclient.cpp diff --git a/src/gtk1/dcclient.cpp b/src/gtk1/dcclient.cpp index f01f370d2e..dc90bf665a 100644 --- a/src/gtk1/dcclient.cpp +++ b/src/gtk1/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?