Remove unneeded CacheBestSize() from wxMSW wxDateTimePickerCtrl.
The best size is already cached by the base class GetBestSize(), no need to do it here as well. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78219 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -133,9 +133,7 @@ wxSize wxDateTimePickerCtrl::DoGetBestSize() const
|
||||
if ( MSWAllowsNone() )
|
||||
x += 3*GetCharWidth();
|
||||
|
||||
wxSize best(x, EDIT_HEIGHT_FROM_CHAR_HEIGHT(y));
|
||||
CacheBestSize(best);
|
||||
return best;
|
||||
return wxSize(x, EDIT_HEIGHT_FROM_CHAR_HEIGHT(y));
|
||||
}
|
||||
|
||||
bool
|
||||
|
Reference in New Issue
Block a user