From 61728d5d54f6945493225759795f08d219d90001 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 3 Jan 2014 14:40:08 +0000 Subject: [PATCH] Avoid asserts in wxGTK when wxMDIChildFrame::SetSize() is called. SetSize() doesn't do anything for MDI children in wxGTK and other ports using TDI version of MDI, but it shouldn't result in an assert from wxTLW::DoMoveWindow() neither, so override DoMoveWindow() in wxTDIChildFrame to avoid it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/mdi.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/wx/mdi.h b/include/wx/mdi.h index 837c132822..f6f9839306 100644 --- a/include/wx/mdi.h +++ b/include/wx/mdi.h @@ -302,6 +302,11 @@ protected: wxWindow::DoSetClientSize(width, height); } + virtual void DoMoveWindow(int x, int y, int width, int height) + { + wxWindow::DoMoveWindow(x, y, width, height); + } + // no size hints virtual void DoSetSizeHints(int WXUNUSED(minW), int WXUNUSED(minH), int WXUNUSED(maxW), int WXUNUSED(maxH),