]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix crash when intersecting with NULL region.
authorRobert Roebling <robert@roebling.de>
Tue, 31 Oct 2006 23:03:32 +0000 (23:03 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 31 Oct 2006 23:03:32 +0000 (23:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/dcclient.cpp

index fc66d7acdd2d7f1781c21f4b37df0cc669d1d7de..77ed883565f1571ac859aac074e45af788dd08e4 100644 (file)
@@ -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