From: Robert Roebling Date: Tue, 31 Oct 2006 23:03:32 +0000 (+0000) Subject: Fix crash when intersecting with NULL region. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/93da796db4fdeeba8b2370cbc864b74b769126d5 Fix crash when intersecting with NULL region. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/dcclient.cpp b/src/gtk/dcclient.cpp index fc66d7acdd..77ed883565 100644 --- a/src/gtk/dcclient.cpp +++ b/src/gtk/dcclient.cpp @@ -1319,7 +1319,8 @@ bool wxWindowDC::DoBlit( wxCoord xdest, wxCoord ydest, // a clipped bitmap and therefore needs to move the origin // accordingly wxRegion tmp( xx,yy,ww,hh ); - tmp.Intersect( m_currentClippingRegion ); + if (!m_currentClippingRegion.IsNull()) + tmp.Intersect( m_currentClippingRegion ); tmp.GetBox(cx,cy,cw,ch); // Scale and clipped bitmap