From 395b914eae60df47b2adf35ef895cce14dfe120d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 5 May 2004 22:45:26 +0000 Subject: [PATCH] oops, added missing const_cast to make last check in compile git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/dc.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/msw/dc.cpp b/src/msw/dc.cpp index 2139cee4cb..c9a0c81386 100644 --- a/src/msw/dc.cpp +++ b/src/msw/dc.cpp @@ -391,10 +391,11 @@ wxDC::DoGetClippingBox(wxCoord *x, wxCoord *y, wxCoord *w, wxCoord *h) const // when we're associated with an existing HDC usign SetHDC(), see there if ( m_clipping && !m_clipX1 && !m_clipX2 ) { - UpdateClipBox(); + wxDC *self = wxConstCast(this, wxDC); + self->UpdateClipBox(); if ( !m_clipX1 && !m_clipX2 ) - m_clipping = false; + self->m_clipping = false; } return wxDCBase::DoGetClippingBox(x, y, w, h); -- 2.47.2