X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bc385ba9ebd0185d5bc3dcbf9fb3f35e3eac4d7a..e612f101d324eb3a81f0e73f07594c1836b41545:/src/generic/calctrl.cpp diff --git a/src/generic/calctrl.cpp b/src/generic/calctrl.cpp index dca2a4e76d..df8e2d745d 100644 --- a/src/generic/calctrl.cpp +++ b/src/generic/calctrl.cpp @@ -288,12 +288,12 @@ void wxCalendarCtrl::ShowCurrentControls() wxControl *wxCalendarCtrl::GetMonthControl() const { - return AllowMonthChange() ? m_comboMonth : m_staticMonth; + return AllowMonthChange() ? (wxControl *)m_comboMonth : (wxControl *)m_staticMonth; } wxControl *wxCalendarCtrl::GetYearControl() const { - return AllowYearChange() ? m_spinYear : m_staticYear; + return AllowYearChange() ? (wxControl *)m_spinYear : (wxControl *)m_staticYear; } void wxCalendarCtrl::EnableYearChange(bool enable)