diff --git a/src/common/menucmn.cpp b/src/common/menucmn.cpp index dc9db4f268..883870a714 100644 --- a/src/common/menucmn.cpp +++ b/src/common/menucmn.cpp @@ -30,6 +30,7 @@ #include "wx/intl.h" #include "wx/log.h" #include "wx/menu.h" + #include "wx/frame.h" #endif #include "wx/stockitem.h" @@ -529,7 +530,7 @@ wxWindow *wxMenuBase::GetInvokingWindow() const wxWindow *wxMenuBase::GetWindow() const { - return GetMenuBar() ? (wxWindow*)GetMenuBar()->GetFrame() : GetInvokingWindow(); + return GetMenuBar() ? GetMenuBar()->GetFrame() : GetInvokingWindow(); } // ----------------------------------------------------------------------------