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:
@@ -146,9 +146,7 @@ wxSize wxBookCtrlBase::DoGetBestSize() const
|
||||
|
||||
// convert display area to window area, adding the size necessary for the
|
||||
// tabs
|
||||
wxSize best = CalcSizeFromPage(bestSize);
|
||||
CacheBestSize(best);
|
||||
return best;
|
||||
return CalcSizeFromPage(bestSize);
|
||||
}
|
||||
|
||||
wxRect wxBookCtrlBase::GetPageRect() const
|
||||
|
||||
Reference in New Issue
Block a user