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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user