X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a0fe77034b8b65a2f9be0f511f19560ee8804740..6f3f38980f10a935f3b47dbf0d3b4643e96a4be2:/src/common/wincmn.cpp diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index a1ded8b8bb..47308229a1 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -2479,7 +2479,7 @@ void wxWindowBase::DoUpdateWindowUI(wxUpdateUIEvent& event) // using them. wxSize wxWindowBase::GetDlgUnitBase() const { - const wxWindow *parent = wxGetTopLevelParent((wxWindow*)this); + const wxWindowBase * const parent = wxGetTopLevelParent((wxWindow*)this); if ( !parent->m_font.IsOk() ) { @@ -2739,8 +2739,10 @@ void wxWindowBase::OnMiddleClick( wxMouseEvent& event ) else #endif // __WXDEBUG__ { +#if wxUSE_MSGDLG // just Ctrl-Alt-middle click shows information about wx version ::wxInfoMessageBox((wxWindow*)this); +#endif // wxUSE_MSGDLG } } else