mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 03:00:30 +00:00
fixed bug in CompareEndPoints()
This commit is contained in:
parent
37a6739ec1
commit
bcfb7de2e5
@ -1255,7 +1255,7 @@ nsresult nsRange::CompareEndPoints(PRUint16 how, nsIDOMRange* srcRange,
|
||||
|
||||
if ((node1 == node2) && (offset1 == offset2))
|
||||
*aCmpRet = 0;
|
||||
else if (IsIncreasing(node1, offset2, node2, offset2))
|
||||
else if (IsIncreasing(node1, offset1, node2, offset2))
|
||||
*aCmpRet = 1;
|
||||
else
|
||||
*aCmpRet = -1;
|
||||
|
@ -1255,7 +1255,7 @@ nsresult nsRange::CompareEndPoints(PRUint16 how, nsIDOMRange* srcRange,
|
||||
|
||||
if ((node1 == node2) && (offset1 == offset2))
|
||||
*aCmpRet = 0;
|
||||
else if (IsIncreasing(node1, offset2, node2, offset2))
|
||||
else if (IsIncreasing(node1, offset1, node2, offset2))
|
||||
*aCmpRet = 1;
|
||||
else
|
||||
*aCmpRet = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user