diff --git a/include/wx/dc.h b/include/wx/dc.h index dadbe793a3..38edf9da5f 100644 --- a/include/wx/dc.h +++ b/include/wx/dc.h @@ -1454,7 +1454,8 @@ public: ~wxDCClipper() { m_dc.DestroyClippingRegion(); - m_dc.SetClippingRegion(m_oldClipRect); + if ( !m_oldClipRect.IsEmpty() ) + m_dc.SetClippingRegion(m_oldClipRect); } private: