Fix crash when intersecting with NULL region.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2006-10-31 23:03:32 +00:00
parent ac7d3dd157
commit 93da796db4

View 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