mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Fixed context menu problem when > 1 cell selected, b=55991, r=akkana, sr=kin
This commit is contained in:
parent
47fa1663fb
commit
2b11cbf638
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user