From: Włodzimierz Skiba Date: Fri, 18 Feb 2005 10:23:07 +0000 (+0000) Subject: Typo fixes. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/df57c15cce0a46071ffbbad00cb02c196361d37c Typo fixes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/palmos/datectrl.cpp b/src/palmos/datectrl.cpp index 79f890156c..88206bc61b 100644 --- a/src/palmos/datectrl.cpp +++ b/src/palmos/datectrl.cpp @@ -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; } diff --git a/src/palmos/radiobox.cpp b/src/palmos/radiobox.cpp index f592c79cd8..c089a55501 100644 --- a/src/palmos/radiobox.cpp +++ b/src/palmos/radiobox.cpp @@ -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 ) |