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:
@@ -173,9 +173,7 @@ wxSize wxCalendarCtrl::DoGetBestSize() const
|
||||
return wxCalendarCtrlBase::DoGetBestSize();
|
||||
}
|
||||
|
||||
const wxSize best = wxRectFromRECT(rc).GetSize() + GetWindowBorderSize();
|
||||
CacheBestSize(best);
|
||||
return best;
|
||||
return wxRectFromRECT(rc).GetSize() + GetWindowBorderSize();
|
||||
}
|
||||
|
||||
wxCalendarHitTestResult
|
||||
|
||||
Reference in New Issue
Block a user