зеркало из https://github.com/mozilla/pjs.git
Fix for bug 4050 - problem with HTMLSelectElement::Add(). Fix reviewed by Eric Pollmann and approved by CYeh.
This commit is contained in:
Родитель
20c2b6203a
Коммит
dc0c7c7de9
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче