From: Vadim Zeitlin Date: Sun, 6 Apr 2008 20:02:52 +0000 (+0000) Subject: no changes, just fix typo in variable name X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ddf13afcfebaeefc4d6d674fd512ecfccf3650c1 no changes, just fix typo in variable name git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/generic/calctrlg.h b/include/wx/generic/calctrlg.h index 7be301ff48..57e1bab8af 100644 --- a/include/wx/generic/calctrlg.h +++ b/include/wx/generic/calctrlg.h @@ -278,7 +278,7 @@ private: m_colHeaderFg, m_colHeaderBg, m_colBackground, - m_colSorrounding; + m_colSurrounding; // the attributes for each of the month days wxCalendarDateAttr *m_attrs[31]; diff --git a/src/generic/calctrlg.cpp b/src/generic/calctrlg.cpp index 20b693df3f..2c5a340376 100644 --- a/src/generic/calctrlg.cpp +++ b/src/generic/calctrlg.cpp @@ -211,7 +211,7 @@ void wxGenericCalendarCtrl::InitColours() m_colHighlightFg = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT); m_colHighlightBg = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT); m_colBackground = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW); - m_colSorrounding = wxSystemSettings::GetColour(wxSYS_COLOUR_GRAYTEXT); + m_colSurrounding = wxSystemSettings::GetColour(wxSYS_COLOUR_GRAYTEXT); m_colHolidayFg = *wxRED; // don't set m_colHolidayBg - by default, same as our bg colour @@ -1092,9 +1092,8 @@ void wxGenericCalendarCtrl::OnPaint(wxPaintEvent& WXUNUSED(event)) if ( date.GetMonth() != m_date.GetMonth() || !IsDateInRange(date) ) { - // surrounding week or out-of-range - // draw "disabled" - dc.SetTextForeground(m_colSorrounding); + // draw the days of adjacent months in different colour + dc.SetTextForeground(m_colSurrounding); changedColours = true; } else