From 693ed53a3bb86fdeb0d28f3571889ead908c0306 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Mon, 1 Oct 2001 23:08:47 +0000 Subject: [PATCH] fixing bustage -- nos such thing as NS_FORM_BUTTON_IMAGE --- layout/html/forms/src/nsFormFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/html/forms/src/nsFormFrame.cpp b/layout/html/forms/src/nsFormFrame.cpp index 6e9cd710fca..a128f645cee 100644 --- a/layout/html/forms/src/nsFormFrame.cpp +++ b/layout/html/forms/src/nsFormFrame.cpp @@ -1938,7 +1938,7 @@ nsFormFrame::GetFirstSubmitButtonAndTxtCnt(PRInt32& aInputTxtCnt) nsIFormControlFrame* fcFrame = (nsIFormControlFrame*) mFormControls.ElementAt(i); PRInt32 type; fcFrame->GetType(&type); - if ((type == NS_FORM_INPUT_SUBMIT || type == NS_FORM_BUTTON_SUBMIT || type == NS_FORM_BUTTON_IMAGE) && + if ((type == NS_FORM_INPUT_SUBMIT || type == NS_FORM_BUTTON_SUBMIT || type == NS_FORM_INPUT_IMAGE) && submitFrame == nsnull) { NS_ASSERTION(fcFrame->QueryInterface(NS_GET_IID(nsIFrame), (void**)&submitFrame) == NS_OK, "This has to be a frame!");