fixing problem with undo of join txn

This commit is contained in:
jfrancis%netscape.com 1999-05-04 08:03:51 +00:00
parent 6035561262
commit f32cb5f466
2 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ NS_IMETHODIMP JoinElementTxn::Undo(void)
if (NS_FAILED(result)) {return result;}
if (!child) {return NS_ERROR_NULL_POINTER;}
child->GetNextSibling(getter_AddRefs(nextSibling));
result = mRightNode->RemoveChild(child, getter_AddRefs(resultNode));
result = mLeftNode->AppendChild(child, getter_AddRefs(resultNode));
child = do_QueryInterface(nextSibling);
}
}

View File

@ -140,7 +140,7 @@ NS_IMETHODIMP JoinElementTxn::Undo(void)
if (NS_FAILED(result)) {return result;}
if (!child) {return NS_ERROR_NULL_POINTER;}
child->GetNextSibling(getter_AddRefs(nextSibling));
result = mRightNode->RemoveChild(child, getter_AddRefs(resultNode));
result = mLeftNode->AppendChild(child, getter_AddRefs(resultNode));
child = do_QueryInterface(nextSibling);
}
}