From bcd882b35e56a43f894551a43bbc4937034b7a0b Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 11 Apr 2005 18:42:11 +0000 Subject: [PATCH] setting an empty region shouldn't clear the clipping git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/dc.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/mac/carbon/dc.cpp b/src/mac/carbon/dc.cpp index a46cf73240..78b4e4d3ec 100644 --- a/src/mac/carbon/dc.cpp +++ b/src/mac/carbon/dc.cpp @@ -457,11 +457,6 @@ void wxDC::DoSetClippingRegion( wxCoord x, wxCoord y, wxCoord width, wxCoord hei void wxDC::DoSetClippingRegionAsRegion( const wxRegion ®ion ) { wxCHECK_RET( Ok(), wxT("invalid window dc") ) ; - if (region.Empty()) - { - DestroyClippingRegion(); - return; - } wxMacFastPortSetter helper(this) ; wxCoord x, y, w, h; region.GetBox( x, y, w, h ); -- 2.45.2