Fixed context menu problem when > 1 cell selected, b=55991, r=akkana, sr=kin
git-svn-id: svn://10.0.0.236/trunk@93494 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -273,6 +273,10 @@ nsEditorShellMouseListener::MouseDown(nsIDOMEvent* aMouseEvent)
|
||||
continue;//dont bail yet, iterate through them all
|
||||
|
||||
res = nsrange->IsPointInRange(parent, offset, &NodeIsInSelection);
|
||||
|
||||
// Done when we find a range that we are in
|
||||
if (NodeIsInSelection)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -273,6 +273,10 @@ nsEditorShellMouseListener::MouseDown(nsIDOMEvent* aMouseEvent)
|
||||
continue;//dont bail yet, iterate through them all
|
||||
|
||||
res = nsrange->IsPointInRange(parent, offset, &NodeIsInSelection);
|
||||
|
||||
// Done when we find a range that we are in
|
||||
if (NodeIsInSelection)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user