Remove unnecessary wxSizer::Fit() calls

wxSizer::SetSizeHints() already does what Fit() does (while also setting
the minimum window size to the fitting size), so there is no need to
call both of them.

No real changes, just some cleanup.
This commit is contained in:
Vadim Zeitlin
2022-02-19 15:38:07 +01:00
parent fab42c3e2c
commit 61d10a7328
11 changed files with 0 additions and 11 deletions

View File

@@ -220,7 +220,6 @@ void wxGenericMessageDialog::DoCreateMsgdialog()
SetSizer( topsizer );
topsizer->SetSizeHints( this );
topsizer->Fit( this );
wxSize size( GetSize() );
if (size.x < size.y*3/2)
{