]> git.saurik.com Git - wxWidgets.git/commitdiff
oops, added missing const_cast to make last check in compile
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 5 May 2004 22:45:26 +0000 (22:45 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 5 May 2004 22:45:26 +0000 (22:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dc.cpp

index 2139cee4cbfc80274bec942376643603fbf4cda8..c9a0c81386b3a400e2a8cfe164228267aa64f4fd 100644 (file)
@@ -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);