X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fd20ceff24ca5f002d6424856e9d19f6d9178fb5..ffe50f008be086fa5591ca82829a03779fba0a58:/src/common/wincmn.cpp?ds=sidebyside diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 2921c1f04b..031712592b 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -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