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
This commit is contained in:
Stefan Csomor 2005-04-11 18:42:11 +00:00
parent 6f6136d9ca
commit bcd882b35e

View 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") ) ;
if (region.Empty())
{
DestroyClippingRegion();
return;
}
wxMacFastPortSetter helper(this) ;
wxCoord x, y, w, h;
region.GetBox( x, y, w, h );