Bug 464009, patch1, r+sr=sicking

This commit is contained in:
Olli Pettay 2008-12-03 12:38:15 +02:00
Родитель 112d988340
Коммит e53d662757
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -1475,7 +1475,7 @@ nsHTMLFormElement::RemoveElement(nsIFormControl* aChild,
// Find the index of the child. This will be used later if necessary
// to find the default submit.
PRUint32 index = controls.IndexOf(aChild);
NS_ASSERTION(index != controls.NoIndex, "Child not in controls");
NS_ENSURE_STATE(index != controls.NoIndex);
controls.RemoveElementAt(index);