The correct version of the patch for bug 363198, this time.

This commit is contained in:
uriber%gmail.com 2007-01-30 19:36:55 +00:00
Родитель 1f1b745917
Коммит f7b12367dd
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -2586,7 +2586,7 @@ nsFrameSelection::GetFrameForNodeOffset(nsIContent *aNode,
childIndex = aOffset;
}
if (aOffset != 0 || numChildren != 0) {
if (childIndex > 0 || numChildren > 0) {
nsCOMPtr<nsIContent> childNode = theNode->GetChildAt(childIndex);
if (!childNode)