fix for Create(wxDateInvalidDate)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -375,10 +375,7 @@ bool wxDatePickerCtrlGeneric::Create(wxWindow *parent,
|
|||||||
m_popup->SetClientSize(panel->GetSize());
|
m_popup->SetClientSize(panel->GetSize());
|
||||||
m_popup->Hide();
|
m_popup->Hide();
|
||||||
|
|
||||||
if (!date.IsValid())
|
SetValue(date.IsValid() ? date : wxDateTime::Today());
|
||||||
date.Today();
|
|
||||||
|
|
||||||
SetValue(date);
|
|
||||||
|
|
||||||
SetBestFittingSize(size);
|
SetBestFittingSize(size);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user