diff --git a/include/wx/dc.h b/include/wx/dc.h index 5749d578b3..55b1129218 100644 --- a/include/wx/dc.h +++ b/include/wx/dc.h @@ -666,7 +666,10 @@ private: wxDC *m_owner; protected: - // unset clipping variables (after clipping region was destroyed) + // This method exists for backwards compatibility only (while it's not + // documented, there are derived classes using it outside wxWidgets + // itself), don't use it in any new code and just call wxDCImpl version of + // DestroyClippingRegion() to reset the clipping information instead. void ResetClipping() { m_clipping = false; diff --git a/src/common/dcgraph.cpp b/src/common/dcgraph.cpp index 6eafed2622..8a1441697d 100644 --- a/src/common/dcgraph.cpp +++ b/src/common/dcgraph.cpp @@ -376,7 +376,7 @@ void wxGCDCImpl::DestroyClippingRegion() m_graphicContext->SetPen( m_pen ); m_graphicContext->SetBrush( m_brush ); - ResetClipping(); + wxDCImpl::DestroyClippingRegion(); m_isClipBoxValid = false; } diff --git a/src/dfb/dc.cpp b/src/dfb/dc.cpp index a8458e58ea..d6141a7602 100644 --- a/src/dfb/dc.cpp +++ b/src/dfb/dc.cpp @@ -115,7 +115,7 @@ void wxDFBDCImpl::DestroyClippingRegion() m_surface->SetClip(NULL); - ResetClipping(); + wxDCImpl::DestroyClippingRegion(); } // --------------------------------------------------------------------------- diff --git a/src/qt/dc.cpp b/src/qt/dc.cpp index 98c21fa739..38e4e0af21 100644 --- a/src/qt/dc.cpp +++ b/src/qt/dc.cpp @@ -454,7 +454,7 @@ void wxQtDCImpl::DoSetDeviceClippingRegion(const wxRegion& region) void wxQtDCImpl::DestroyClippingRegion() { - ResetClipping(); + wxDCImpl::DestroyClippingRegion(); m_clippingRegion->Clear(); if (m_qtPainter->isActive())