From c845b953a2e0a65b509d9127caaecf1cb64477e2 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sun, 17 Jul 2016 00:01:28 +0200 Subject: [PATCH] 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. --- src/gtk/dcclient.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/gtk/dcclient.cpp b/src/gtk/dcclient.cpp index 507fd47769..f0cd8151ce 100644 --- a/src/gtk/dcclient.cpp +++ b/src/gtk/dcclient.cpp @@ -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())