]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/dcclient.cpp
added Append(wxArrayString) to wxItemContainer (and so to wxChoice, wxComboBox, wxLis...
[wxWidgets.git] / src / gtk1 / 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?