]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dcclient.cpp
oops, fixed typo breaking iconv constness detection in the previous commit
[wxWidgets.git] / src / gtk / dcclient.cpp
index f01f370d2e15bbf044f4fbf12e1cc5ee979be884..dc90bf665aff7ff1a9e4adb160e4fee08c1a4fcf 100644 (file)
@@ -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?