wxUniv/MSW compilation fix in wxWindowBase::GetDlgUnitBase().

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
This commit is contained in:
Vadim Zeitlin
2010-10-30 23:51:14 +00:00
parent f7196178a5
commit 2d4dcfe1a5

View File

@@ -2479,7 +2479,7 @@ void wxWindowBase::DoUpdateWindowUI(wxUpdateUIEvent& event)
// using them. // using them.
wxSize wxWindowBase::GetDlgUnitBase() const wxSize wxWindowBase::GetDlgUnitBase() const
{ {
const wxWindow *parent = wxGetTopLevelParent((wxWindow*)this); const wxWindowBase * const parent = wxGetTopLevelParent((wxWindow*)this);
if ( !parent->m_font.IsOk() ) if ( !parent->m_font.IsOk() )
{ {