Bug 679459 - "ASSERTION: mEndOffset is beyond the end of this node" in nsRange::ContentInserted. r=smaug

This commit is contained in:
Mats Palmgren 2011-09-08 23:32:07 +02:00
parent 28b580015a
commit 0459922a98

View File

@ -748,7 +748,8 @@ nsGenericDOMDataNode::SplitData(PRUint32 aOffset, nsIContent** aReturn,
CharacterDataChangeInfo::Details details = {
CharacterDataChangeInfo::Details::eSplit, newContent
};
rv = SetTextInternal(cutStartOffset, cutLength, nsnull, 0, PR_TRUE, &details);
rv = SetTextInternal(cutStartOffset, cutLength, nsnull, 0, PR_TRUE,
aCloneAfterOriginal ? &details : nsnull);
if (NS_FAILED(rv)) {
return rv;
}