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:
@@ -457,11 +457,6 @@ void wxDC::DoSetClippingRegion( wxCoord x, wxCoord y, wxCoord width, wxCoord hei
|
|||||||
void wxDC::DoSetClippingRegionAsRegion( const wxRegion ®ion )
|
void wxDC::DoSetClippingRegionAsRegion( const wxRegion ®ion )
|
||||||
{
|
{
|
||||||
wxCHECK_RET( Ok(), wxT("invalid window dc") ) ;
|
wxCHECK_RET( Ok(), wxT("invalid window dc") ) ;
|
||||||
if (region.Empty())
|
|
||||||
{
|
|
||||||
DestroyClippingRegion();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
wxMacFastPortSetter helper(this) ;
|
wxMacFastPortSetter helper(this) ;
|
||||||
wxCoord x, y, w, h;
|
wxCoord x, y, w, h;
|
||||||
region.GetBox( x, y, w, h );
|
region.GetBox( x, y, w, h );
|
||||||
|
Reference in New Issue
Block a user