diff --git a/include/wx/mac/carbon/listctrl.h b/include/wx/mac/carbon/listctrl.h index 1af13e0ae6..8d20a96b75 100644 --- a/include/wx/mac/carbon/listctrl.h +++ b/include/wx/mac/carbon/listctrl.h @@ -324,7 +324,7 @@ class WXDLLEXPORT wxListCtrl: public wxControl virtual bool SetFont(const wxFont& font); virtual bool SetForegroundColour(const wxColour& colour); virtual bool SetBackgroundColour(const wxColour& colour); - virtual wxColour GetBackgroundColour(); + virtual wxColour GetBackgroundColour() const; // functions for editing/timer void OnRenameTimer(); diff --git a/src/mac/carbon/listctrl_mac.cpp b/src/mac/carbon/listctrl_mac.cpp index cf06618305..a0c75a581f 100644 --- a/src/mac/carbon/listctrl_mac.cpp +++ b/src/mac/carbon/listctrl_mac.cpp @@ -903,7 +903,7 @@ bool wxListCtrl::SetBackgroundColour(const wxColour& colour) return rv; } -wxColour wxListCtrl::GetBackgroundColour() +wxColour wxListCtrl::GetBackgroundColour() const { if (m_genericImpl) return m_genericImpl->GetBackgroundColour();