forgot a null check on the region when starting a drag. sr=sfraser. bug# 80818.

git-svn-id: svn://10.0.0.236/trunk@94913 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pinkerton%netscape.com
2001-05-15 02:54:27 +00:00
parent 78a081c6e2
commit ccfde38a8e

View File

@@ -287,7 +287,8 @@ nsDragService :: BuildDragRegion ( nsIScriptableRegion* inRegion, nsIDOMNode* in
{
PRBool retVal = PR_TRUE;
nsCOMPtr<nsIRegion> geckoRegion;
inRegion->GetRegion(getter_AddRefs(geckoRegion));
if ( inRegion )
inRegion->GetRegion(getter_AddRefs(geckoRegion));
// create the drag region. Pull out the native mac region from the nsIRegion we're
// given, copy it, inset it one pixel, and subtract them so we're left with just an