This wxWindowBase method can't access protected m_font member of another
wxWindow object -- but can access it in wxWindowBase object.
Closes #12358.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65963
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// using them.
wxSize wxWindowBase::GetDlgUnitBase() const
{
- const wxWindow *parent = wxGetTopLevelParent((wxWindow*)this);
+ const wxWindowBase * const parent = wxGetTopLevelParent((wxWindow*)this);
if ( !parent->m_font.IsOk() )
{