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:
@@ -278,8 +278,6 @@ wxSize wxBitmapComboBox::DoGetBestSize() const
|
||||
|
||||
if ( h2 > sz.y )
|
||||
sz.y = h2;
|
||||
|
||||
CacheBestSize(sz);
|
||||
}
|
||||
|
||||
return sz;
|
||||
|
||||
Reference in New Issue
Block a user