Bug 348981 r=pkasting a=dbaron Typo in range setting

This commit is contained in:
brettw%gmail.com 2006-08-18 17:45:02 +00:00
parent 9ea0e39492
commit a7a2cb6e16

View File

@ -200,7 +200,7 @@ mozInlineSpellStatus::InitForEditorChange(
NS_ENSURE_SUCCESS(rv, rv);
}
rv = nsrange->ComparePoint(aStartNode, aStartOffset, &cmpResult);
rv = nsrange->ComparePoint(aEndNode, aEndOffset, &cmpResult);
NS_ENSURE_SUCCESS(rv, rv);
if (cmpResult > 0) { // given range ends after
rv = mRange->SetEnd(aEndNode, aEndOffset);