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:
parent
2995b68812
commit
84abef1a34
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue