Fix for bug 4050 - problem with HTMLSelectElement::Add(). Fix reviewed by Eric Pollmann and approved by CYeh.

This commit is contained in:
vidur@netscape.com
1999-05-20 21:50:14 +00:00
parent d412a70309
commit 0f6fd5b2fe
2 changed files with 2 additions and 2 deletions
@@ -282,7 +282,7 @@ nsHTMLSelectElement::Add(nsIDOMHTMLElement* aElement, nsIDOMHTMLElement* aBefore
nsresult result;
nsIDOMNode* ret;
if (nsnull != aBefore) {
if (nsnull == aBefore) {
result = mInner.AppendChild(aElement, &ret);
NS_IF_RELEASE(ret);
}