Fix for wxX11
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -40,6 +40,7 @@
|
|||||||
#include "wx/app.h"
|
#include "wx/app.h"
|
||||||
#include "wx/image.h"
|
#include "wx/image.h"
|
||||||
#include "wx/settings.h"
|
#include "wx/settings.h"
|
||||||
|
#include "wx/toolbar.h"
|
||||||
|
|
||||||
#if wxUSE_MDI
|
#if wxUSE_MDI
|
||||||
#include "wx/mdi.h"
|
#include "wx/mdi.h"
|
||||||
@@ -502,7 +503,7 @@ void wxFrameManager::SetFrame(wxFrame* frame)
|
|||||||
if (frame->IsKindOf(CLASSINFO(wxMDIParentFrame)))
|
if (frame->IsKindOf(CLASSINFO(wxMDIParentFrame)))
|
||||||
{
|
{
|
||||||
wxMDIParentFrame* mdi_frame = (wxMDIParentFrame*)frame;
|
wxMDIParentFrame* mdi_frame = (wxMDIParentFrame*)frame;
|
||||||
wxMDIClientWindow* client_window = mdi_frame->GetClientWindow();
|
wxWindow* client_window = mdi_frame->GetClientWindow();
|
||||||
|
|
||||||
wxASSERT_MSG(client_window, wxT("Client window is NULL!"));
|
wxASSERT_MSG(client_window, wxT("Client window is NULL!"));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user