- inline wxPen *GetPen() const { return m_pen; }
- inline wxBrush *GetBrush() const { return m_brush; }
+ inline wxPen *GetPen() const { return wx_const_cast(wxPen*, m_pen); }
+ inline wxBrush *GetBrush() const { return wx_const_cast(wxBrush*, m_brush); }