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:
@@ -88,7 +88,6 @@ void wxPropertySheetDialog::Init()
|
||||
// Layout the dialog, to be called after pages have been created
|
||||
void wxPropertySheetDialog::LayoutDialog(int centreFlags)
|
||||
{
|
||||
GetSizer()->Fit(this);
|
||||
GetSizer()->SetSizeHints(this);
|
||||
if (centreFlags)
|
||||
Centre(centreFlags);
|
||||
|
||||
Reference in New Issue
Block a user