Don't set our separator count to -1 when we really have 0 of them. Bug 400157, r+sr=dbaron

This commit is contained in:
bzbarsky@mit.edu 2007-11-07 09:16:09 -08:00
Родитель 9049c9f1af
Коммит 3d5125628d
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -195,8 +195,12 @@ nsMathMLmfencedFrame::CreateFencesAndSeparators(nsPresContext* aPresContext)
mSeparatorsChar[i].SetData(aPresContext, sepChar);
ResolveMathMLCharStyle(aPresContext, mContent, mStyleContext, &mSeparatorsChar[i], isMutable);
}
mSeparatorsCount = sepCount;
} else {
// No separators. Note that sepCount can be -1 here, so don't
// set mSeparatorsCount to it.
mSeparatorsCount = 0;
}
mSeparatorsCount = sepCount;
}
return NS_OK;
}