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
This commit is contained in:
Vadim Zeitlin
2004-05-05 22:45:26 +00:00
parent d16b634fa3
commit 395b914eae

View 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);