avoid calling GetDefaultSize() twice

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2013-09-24 05:50:09 +00:00
parent 4f2d6692c7
commit 7b37894790

View File

@@ -549,7 +549,9 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent,
long style,
const wxString &name )
{
const wxSize size(WidthDefault(sizeOrig.x), HeightDefault(sizeOrig.y));
wxSize size(sizeOrig);
if (!size.IsFullySpecified())
size.SetDefaults(GetDefaultSize());
wxTopLevelWindows.Append( this );