A slightly better compilation fix after PCH-less build breakage in r64126.

Include wx/frame.h header instead of casting wxFrame to wxWindow using C style
cast. Although this does work now and probably will work later too it seems
better to not use the cast nevertheless.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2010-04-24 16:59:09 +00:00
parent 7ed63042c6
commit 1aecefa501

View File

@@ -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();
}
// ----------------------------------------------------------------------------