From 93da796db4fdeeba8b2370cbc864b74b769126d5 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Tue, 31 Oct 2006 23:03:32 +0000 Subject: [PATCH] Fix crash when intersecting with NULL region. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/dcclient.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.45.2