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:
parent
6f6136d9ca
commit
bcd882b35e
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user