Don't call CacheBestSize() from DoGetBestSize() implementations
This is unnecessary, wxWindow::GetBestSize() already does this, so calling it from DoGetBestSize() called by it too is just useless.
This commit is contained in:
@@ -174,9 +174,7 @@ wxSize wxCheckBox::DoGetBestClientSize() const
|
||||
hCheckbox = s_checkSize;
|
||||
}
|
||||
|
||||
wxSize best(wCheckbox, hCheckbox);
|
||||
CacheBestSize(best);
|
||||
return best;
|
||||
return wxSize(wCheckbox, hCheckbox);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user