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:
@@ -156,6 +156,8 @@ wxDatePickerCtrl::Create(wxWindow *parent,
|
|||||||
|
|
||||||
if ( dt.IsValid() || (style & wxDP_ALLOWNONE) )
|
if ( dt.IsValid() || (style & wxDP_ALLOWNONE) )
|
||||||
SetValue(dt);
|
SetValue(dt);
|
||||||
|
else
|
||||||
|
SetValue(wxDateTime::Today());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user