From 44fe13f0eebea4c2169d445d54c6cdaf66e4e79c Mon Sep 17 00:00:00 2001 From: "Olli.Pettay%helsinki.fi" Date: Wed, 7 Jan 2009 21:54:10 +0000 Subject: [PATCH] Bug 464009, r+sr=sicking, a=dveditz git-svn-id: svn://10.0.0.236/trunk@255749 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/html/content/src/nsHTMLFormElement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/content/html/content/src/nsHTMLFormElement.cpp b/mozilla/content/html/content/src/nsHTMLFormElement.cpp index bdfbd284c05..a006a97712a 100644 --- a/mozilla/content/html/content/src/nsHTMLFormElement.cpp +++ b/mozilla/content/html/content/src/nsHTMLFormElement.cpp @@ -1461,7 +1461,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);