fixed off by one error in OnButtonSet()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43896 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-12-10 13:46:12 +00:00
parent 2995b68812
commit 84abef1a34

View File

@@ -228,7 +228,7 @@ void DatePickerWidgetsPage::OnButtonSet(wxCommandEvent& WXUNUSED(event))
m_month->GetValue().ToLong(&month) &&
m_year->GetValue().ToLong(&year) )
{
const wxDateTime someDay(day, wxDateTime::Month(month), year);
const wxDateTime someDay(day, wxDateTime::Month(month - 1), year);
if ( someDay.IsValid() )
{
m_datePicker->SetValue(someDay);