From 408cabdd193b3fb86c83ba053bb646a4c2d2c4a7 Mon Sep 17 00:00:00 2001 From: "jfrancis%netscape.com" Date: Thu, 7 Nov 2002 11:29:37 +0000 Subject: [PATCH] fix for 169586: Plaintext is always pasted in default font not the one in context. r=brade; sr=kin git-svn-id: svn://10.0.0.236/trunk@133289 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp b/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp index 2ca79986b43..173c5bcfb55 100644 --- a/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp +++ b/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp @@ -829,8 +829,6 @@ NS_IMETHODIMP nsHTMLEditor::InsertFromTransferable(nsITransferable *transferable NS_ASSERTION(text.Length() <= (len/2), "Invalid length!"); stuffToPaste.Assign ( text.get(), len / 2 ); nsAutoEditBatch beginBatching(this); - // pasting does not inherit local inline styles - RemoveAllInlineProperties(); rv = InsertText(stuffToPaste); } }