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