162163 - comma after underline causes the composer to crash

r=rjesup sr=jst
This commit is contained in:
caillon%returnzero.com 2002-09-11 01:58:50 +00:00
Родитель 53c55209ac
Коммит a8088c6baa
1 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -782,6 +782,17 @@ PRBool nsRange::IsIncreasing(nsIDOMNode* aStartN, PRInt32 aStartOffset,
startIdx = mStartAncestors->Count() - 1;
endIdx = mEndAncestors->Count() - 1;
// Ensure that we actually have ancestors to iterate through
if (startIdx < 0) {
if (startIdx < endIdx) {
return PR_TRUE;
}
return PR_FALSE;
}
if (endIdx < 0) {
return PR_FALSE;
}
// back through the ancestors, starting from the root, until first non-matching ancestor found
while (startIdx >= 0 && endIdx >= 0 &&
mStartAncestors->ElementAt(startIdx) == mEndAncestors->ElementAt(endIdx))