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:
@@ -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
|
||||
|
Reference in New Issue
Block a user