diff --git a/src/gtk/dcclient.cpp b/src/gtk/dcclient.cpp index b7952f248b..0bf84391ad 100644 --- a/src/gtk/dcclient.cpp +++ b/src/gtk/dcclient.cpp @@ -1383,6 +1383,11 @@ void wxWindowDC::DoSetClippingRegionAsRegion( const wxRegion ®ion ) return; } + wxCoord x,y,w,h; + region.GetBox( x, y, w, h ); + + wxDC::DoSetClippingRegion( x, y, w, h ); + if (!m_window) return; gdk_gc_set_clip_region( m_penGC, region.GetRegion() ); diff --git a/src/gtk1/dcclient.cpp b/src/gtk1/dcclient.cpp index b7952f248b..0bf84391ad 100644 --- a/src/gtk1/dcclient.cpp +++ b/src/gtk1/dcclient.cpp @@ -1383,6 +1383,11 @@ void wxWindowDC::DoSetClippingRegionAsRegion( const wxRegion ®ion ) return; } + wxCoord x,y,w,h; + region.GetBox( x, y, w, h ); + + wxDC::DoSetClippingRegion( x, y, w, h ); + if (!m_window) return; gdk_gc_set_clip_region( m_penGC, region.GetRegion() );