Fix the use of Today() for when invalid date is passed to ctor. Also
set best/min size using size passed to ctor. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32147 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -362,10 +362,12 @@ bool wxDatePickerCtrlGeneric::Create(wxWindow *parent,
|
|||||||
m_popup->Hide();
|
m_popup->Hide();
|
||||||
|
|
||||||
if (!date.IsValid())
|
if (!date.IsValid())
|
||||||
date.Today();
|
SetValue(wxDateTime::Today());
|
||||||
|
else
|
||||||
SetValue(date);
|
SetValue(date);
|
||||||
|
|
||||||
|
SetBestFittingSize(size);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user