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:
@@ -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 );
|
||||
|
||||
|
Reference in New Issue
Block a user