fixed bug in CompareEndPoints()

This commit is contained in:
jfrancis%netscape.com 1999-07-01 13:40:09 +00:00
parent 37a6739ec1
commit bcfb7de2e5
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;