Alwayas use SetValue in Create so m_date will be in sync
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43231 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
1cb311851d
commit
4d5364211d
@ -156,6 +156,8 @@ wxDatePickerCtrl::Create(wxWindow *parent,
|
||||
|
||||
if ( dt.IsValid() || (style & wxDP_ALLOWNONE) )
|
||||
SetValue(dt);
|
||||
else
|
||||
SetValue(wxDateTime::Today());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user