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:
@@ -226,10 +226,7 @@ wxSize wxBitmapComboBox::DoGetBestSize() const
|
||||
|
||||
wxCoord useHeightBitmap = EDIT_HEIGHT_FROM_CHAR_HEIGHT(bitmapSize.y);
|
||||
if ( best.y < useHeightBitmap )
|
||||
{
|
||||
best.y = useHeightBitmap;
|
||||
CacheBestSize(best);
|
||||
}
|
||||
return best;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user