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:
Vadim Zeitlin
2014-12-05 22:17:08 +00:00
parent a0c2416858
commit 8a00553fda

View File

@@ -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