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