Don't destroy clipping region if empty clipping region is required (wxDC, GTK).
For compatibility with wxGCDC (Cairo and all native MSW renderers) current clipping region shouldn't be explicitly destroyed if empty clipping region is requested. It should be handled as any other region.
This commit is contained in:
@@ -1904,12 +1904,6 @@ void wxWindowDCImpl::DoSetDeviceClippingRegion( const wxRegion ®ion )
|
||||
{
|
||||
wxCHECK_RET( IsOk(), wxT("invalid window dc") );
|
||||
|
||||
if (region.Empty())
|
||||
{
|
||||
DestroyClippingRegion();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!m_gdkwindow) return;
|
||||
|
||||
if (!m_currentClippingRegion.IsNull())
|
||||
|
Reference in New Issue
Block a user