diff --git a/src/msw/graphics.cpp b/src/msw/graphics.cpp index a9d5c4c065..612e8e926d 100644 --- a/src/msw/graphics.cpp +++ b/src/msw/graphics.cpp @@ -896,7 +896,8 @@ wxGDIPlusContext::~wxGDIPlusContext() void wxGDIPlusContext::Clip( const wxRegion ®ion ) { - m_context->SetClip((HRGN)region.GetHRGN(),CombineModeIntersect); + Region rgn((HRGN)region.GetHRGN()); + m_context->SetClip(&rgn,CombineModeIntersect); } void wxGDIPlusContext::Clip( wxDouble x, wxDouble y, wxDouble w, wxDouble h )