]> git.saurik.com Git - wxWidgets.git/commitdiff
revert r74683, wxTLW has its own {Width,Height}Default()
authorPaul Cornett <paulcor@bullseye.com>
Mon, 19 Aug 2013 16:58:43 +0000 (16:58 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Mon, 19 Aug 2013 16:58:43 +0000 (16:58 +0000)
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

src/gtk/toplevel.cpp

index 414ecd652f273618916a0e3de46174197f14cb18..2ef53b9aa709c2c0e55f2259ac9ccb49dd1fdb6d 100644 (file)
@@ -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 ) ||