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:
		@@ -228,7 +228,7 @@ void DatePickerWidgetsPage::OnButtonSet(wxCommandEvent& WXUNUSED(event))
 | 
				
			|||||||
         m_month->GetValue().ToLong(&month) &&
 | 
					         m_month->GetValue().ToLong(&month) &&
 | 
				
			||||||
         m_year->GetValue().ToLong(&year) )
 | 
					         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() )
 | 
					        if ( someDay.IsValid() )
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            m_datePicker->SetValue(someDay);
 | 
					            m_datePicker->SetValue(someDay);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user