From 0b8975ac185b5c655b87c2e57f5d036b38105942 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sun, 3 Jul 2016 22:11:17 +0200 Subject: [PATCH] Properly reset internal data when destroying clipping region (wxGCDC). Call ResetClipping() function in wxGCDCImpl::DestroyClippingRegion() to be sure that all internal clipping data are reset properly. --- src/common/dcgraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/dcgraph.cpp b/src/common/dcgraph.cpp index 8f5f04b810..90f856609a 100644 --- a/src/common/dcgraph.cpp +++ b/src/common/dcgraph.cpp @@ -346,7 +346,7 @@ void wxGCDCImpl::DestroyClippingRegion() m_graphicContext->SetPen( m_pen ); m_graphicContext->SetBrush( m_brush ); - m_clipping = false; + ResetClipping(); } void wxGCDCImpl::DoGetSizeMM( int* width, int* height ) const