From: Paul Cornett Date: Mon, 19 Aug 2013 16:58:43 +0000 (+0000) Subject: revert r74683, wxTLW has its own {Width,Height}Default() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ef1a87f6064ea88a08ea76cc288007133180f46d revert r74683, wxTLW has its own {Width,Height}Default() which are not the ones called by PreCreation() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/toplevel.cpp b/src/gtk/toplevel.cpp index 414ecd652f..2ef53b9aa7 100644 --- a/src/gtk/toplevel.cpp +++ b/src/gtk/toplevel.cpp @@ -545,10 +545,12 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent, wxWindowID id, const wxString& title, const wxPoint& pos, - const wxSize& size, + const wxSize& sizeOrig, long style, const wxString &name ) { + const wxSize size(WidthDefault(sizeOrig.x), HeightDefault(sizeOrig.y)); + wxTopLevelWindows.Append( this ); if (!PreCreation( parent, pos, size ) ||