Typo fixes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba 2005-02-18 10:23:07 +00:00
parent 8d75fba6c9
commit df57c15cce
2 changed files with 5 additions and 3 deletions

View File

@ -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;
}

View File

@ -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 ) |