fix bustage from Bug 828169 on a CLOSED TREE

This commit is contained in:
David Zbarsky 2013-01-09 19:09:34 -05:00
parent 142e0b1b12
commit 0238239fbb

View File

@ -183,12 +183,12 @@ NS_IMETHODIMP SplitElementTxn::RedoTransaction(void)
}
#endif
nsresult result;
// first, massage the existing node so it is in its post-split state
nsCOMPtr<nsIDOMCharacterData>rightNodeAsText = do_QueryInterface(mExistingRightNode);
if (rightNodeAsText)
{
result = rightNodeAsText->DeleteData(0, mOffset);
nsresult result = rightNodeAsText->DeleteData(0, mOffset);
NS_ENSURE_SUCCESS(result, result);
#ifdef DEBUG
if (gNoisy)
{