From cb6e26b88e189f91770b1f21d4f29b64cde074f4 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 26 Jan 2007 21:47:46 +0000 Subject: [PATCH] fix for drawing in the 'grox box' between two scrollbars git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/dcgraph.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/common/dcgraph.cpp b/src/common/dcgraph.cpp index 613c6a1bcf..993cccf3db 100644 --- a/src/common/dcgraph.cpp +++ b/src/common/dcgraph.cpp @@ -200,6 +200,12 @@ void wxGCDC::DoSetClippingRegionAsRegion( const wxRegion ®ion ) void wxGCDC::DestroyClippingRegion() { m_graphicContext->ResetClip(); + // currently the clip eg of a window extends to the area between the scrollbars + // so we must explicitely make sure it only covers the area we want it to draw + int width, height ; + GetSize( &width , &height ) ; + m_graphicContext->Clip( DeviceToLogicalX(0) , DeviceToLogicalY(0) , width, height ); + m_graphicContext->SetPen( m_pen ); m_graphicContext->SetBrush( m_brush ); -- 2.47.2