Typo fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -115,14 +115,16 @@ bool wxDatePickerCtrl::GetRange(wxDateTime *dt1, wxDateTime *dt2) const
|
|||||||
|
|
||||||
bool wxDatePickerCtrl::SendClickEvent()
|
bool wxDatePickerCtrl::SendClickEvent()
|
||||||
{
|
{
|
||||||
int16_t month = m_dt.GetMonth();
|
int16_t month = (int16_t)m_dt.GetMonth() + 1;
|
||||||
int16_t day = m_dt.GetDay();
|
int16_t day = m_dt.GetDay();
|
||||||
int16_t year = m_dt.GetYear();
|
int16_t year = m_dt.GetYear();
|
||||||
|
|
||||||
if(!SelectDay(selectDayByDay,&month,&day,&year,_T("Pick date")))
|
if(!SelectDay(selectDayByDay,&month,&day,&year,_T("Pick date")))
|
||||||
return false;
|
return false;
|
||||||
wxDateTime dt(m_dt);
|
wxDateTime dt(m_dt);
|
||||||
dt.Set((wxDateTime::wxDateTime_t)day, (wxDateTime::Month)month, (int)year);
|
dt.Set((wxDateTime::wxDateTime_t)day,
|
||||||
|
(wxDateTime::Month)(month-1),
|
||||||
|
(int)year);
|
||||||
SetValue(dt);
|
SetValue(dt);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ bool wxRadioBox::Create(wxWindow *parent,
|
|||||||
rb->Create(
|
rb->Create(
|
||||||
this,
|
this,
|
||||||
wxID_ANY,
|
wxID_ANY,
|
||||||
choices[n],
|
choices[i],
|
||||||
pos,
|
pos,
|
||||||
size,
|
size,
|
||||||
( n == 0 ? wxRB_GROUP : 0 ) |
|
( n == 0 ? wxRB_GROUP : 0 ) |
|
||||||
|
|||||||
Reference in New Issue
Block a user