]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
I think the "specific to PostScript" methods have been gone since 2.6, so let's stop...
[wxWidgets.git] / src / common / wincmn.cpp
index 2921c1f04b69ba9de74ccf4b0c4d1d875c41cd73..031712592b76b163131661d4b449506a7e2a1553 100644 (file)
@@ -2747,6 +2747,8 @@ wxSize wxWindowBase::GetDlgUnitBase() const
 {
     const wxWindowBase * const parent = wxGetTopLevelParent((wxWindow*)this);
 
+    wxCHECK_MSG( parent, wxDefaultSize, wxS("Must have TLW parent") );
+
     if ( !parent->m_font.IsOk() )
     {
         // Default GUI font is used. This is the most common case, so