From 58ead3e70fe03c44928668160e2cb26bb8aea779 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 3 Jan 2014 14:40:26 +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/branches/WX_3_0_BRANCH@75523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/mdi.h | 5 +++++ version-script.in | 1 + 2 files changed, 6 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), diff --git a/version-script.in b/version-script.in index 5ab3367e9c..858bed2804 100644 --- a/version-script.in +++ b/version-script.in @@ -26,6 +26,7 @@ *wxDataViewListCtrl*ClearColumns*; *wxDataViewListStore*ClearColumns*; *wxInfoBarGeneric*SetForegroundColour*; + *wxTDIChildFrame*DoMoveWindow*; }; # symbols available since the beginning of this branch are only given