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:
@@ -175,10 +175,8 @@ wxSize wxBitmapComboBox::DoGetBestSize() const
|
||||
|
||||
int delta = GetBitmapSize().y - GetCharHeight();
|
||||
if ( delta > 0 )
|
||||
{
|
||||
best.y += delta;
|
||||
CacheBestSize(best);
|
||||
}
|
||||
|
||||
return best;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user