fix for bug 13500 - typo that broke deletion

This commit is contained in:
jfrancis%netscape.com 1999-09-15 05:43:25 +00:00
Родитель cbb6e71f55
Коммит 7ae57f5b07
2 изменённых файлов: 8 добавлений и 8 удалений

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

@ -1578,7 +1578,7 @@ nsHTMLEditRules::GetPriorHTMLNode(nsIDOMNode *inNode, nsCOMPtr<nsIDOMNode> *outN
if (NS_FAILED(res)) return res;
// if it's not in the body, then zero it out
if (*outNode || !InBody(*outNode))
if (*outNode && !InBody(*outNode))
{
*outNode = nsnull;
}
@ -1597,7 +1597,7 @@ nsHTMLEditRules::GetPriorHTMLNode(nsIDOMNode *inParent, PRInt32 inOffset, nsCOMP
if (NS_FAILED(res)) return res;
// if it's not in the body, then zero it out
if (*outNode || !InBody(*outNode))
if (*outNode && !InBody(*outNode))
{
*outNode = nsnull;
}
@ -1617,7 +1617,7 @@ nsHTMLEditRules::GetNextHTMLNode(nsIDOMNode *inNode, nsCOMPtr<nsIDOMNode> *outNo
if (NS_FAILED(res)) return res;
// if it's not in the body, then zero it out
if (*outNode || !InBody(*outNode))
if (*outNode && !InBody(*outNode))
{
*outNode = nsnull;
}
@ -1636,7 +1636,7 @@ nsHTMLEditRules::GetNextHTMLNode(nsIDOMNode *inParent, PRInt32 inOffset, nsCOMPt
if (NS_FAILED(res)) return res;
// if it's not in the body, then zero it out
if (*outNode || !InBody(*outNode))
if (*outNode && !InBody(*outNode))
{
*outNode = nsnull;
}

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

@ -1578,7 +1578,7 @@ nsHTMLEditRules::GetPriorHTMLNode(nsIDOMNode *inNode, nsCOMPtr<nsIDOMNode> *outN
if (NS_FAILED(res)) return res;
// if it's not in the body, then zero it out
if (*outNode || !InBody(*outNode))
if (*outNode && !InBody(*outNode))
{
*outNode = nsnull;
}
@ -1597,7 +1597,7 @@ nsHTMLEditRules::GetPriorHTMLNode(nsIDOMNode *inParent, PRInt32 inOffset, nsCOMP
if (NS_FAILED(res)) return res;
// if it's not in the body, then zero it out
if (*outNode || !InBody(*outNode))
if (*outNode && !InBody(*outNode))
{
*outNode = nsnull;
}
@ -1617,7 +1617,7 @@ nsHTMLEditRules::GetNextHTMLNode(nsIDOMNode *inNode, nsCOMPtr<nsIDOMNode> *outNo
if (NS_FAILED(res)) return res;
// if it's not in the body, then zero it out
if (*outNode || !InBody(*outNode))
if (*outNode && !InBody(*outNode))
{
*outNode = nsnull;
}
@ -1636,7 +1636,7 @@ nsHTMLEditRules::GetNextHTMLNode(nsIDOMNode *inParent, PRInt32 inOffset, nsCOMPt
if (NS_FAILED(res)) return res;
// if it's not in the body, then zero it out
if (*outNode || !InBody(*outNode))
if (*outNode && !InBody(*outNode))
{
*outNode = nsnull;
}