]> git.saurik.com Git - wxWidgets.git/commitdiff
setting an empty region shouldn't clear the clipping
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 11 Apr 2005 18:42:11 +0000 (18:42 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 11 Apr 2005 18:42:11 +0000 (18:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/dc.cpp

index a46cf732404e26297a3ef7d18ef5c639568c30b7..78b4e4d3ec46100089f9461a817cf35e1dd6efd3 100644 (file)
@@ -457,11 +457,6 @@ void wxDC::DoSetClippingRegion( wxCoord x, wxCoord y, wxCoord width, wxCoord hei
 void wxDC::DoSetClippingRegionAsRegion( const wxRegion &region  )
 {
     wxCHECK_RET( Ok(), wxT("invalid window dc") ) ;
 void wxDC::DoSetClippingRegionAsRegion( const wxRegion &region  )
 {
     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 );
     wxMacFastPortSetter helper(this) ;
     wxCoord x, y, w, h;
     region.GetBox( x, y, w, h );