diff --git a/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp b/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp index 2ae014f5c8a..484d65c170a 100644 --- a/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp +++ b/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp @@ -1713,7 +1713,7 @@ nsresult nsHTMLEditor::CreateDOMFragmentFromPaste(nsIDOMNSRange *aNSRange, contextDepth--; } - res = StripFormattingNodes(contextAsNode, PR_TRUE); + res = StripFormattingNodes(*outFragNode, PR_TRUE); NS_ENSURE_SUCCESS(res, res); // get the infoString contents