Bug 1231917 - Correct condition controling call to InsertAsCitedQuotation. r=mkmelin a=jorgk
authorJorg K
Mon, 14 Dec 2015 11:55:00 +0100
changeset 26656 ea0c3e39de3e6112019e43a72ea38afe69a40b80
parent 26655 b7fc4630d350be9aa0a2105d1f72c91f6cd11867
child 26657 07e562eef4a2e78c9bc11f252f97cddbe1532b82
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkmelin, jorgk
bugs1231917
Bug 1231917 - Correct condition controling call to InsertAsCitedQuotation. r=mkmelin a=jorgk
mailnews/compose/src/nsMsgCompose.cpp
--- a/mailnews/compose/src/nsMsgCompose.cpp
+++ b/mailnews/compose/src/nsMsgCompose.cpp
@@ -674,17 +674,17 @@ nsMsgCompose::ConvertAndLoadComposeWindo
 
       InsertDivWrappedTextAtSelection(aPrefix,
                                       NS_LITERAL_STRING("moz-cite-prefix"));
     }
 
     if (!aBuf.IsEmpty() && mailEditor)
     {
       // This leaves the caret at the right place to insert a bottom signature.
-      if (aHTMLEditor && !mCiteReference.IsEmpty())
+      if (aHTMLEditor)
         mailEditor->InsertAsCitedQuotation(aBuf,
                                            mCiteReference,
                                            true,
                                            getter_AddRefs(nodeInserted));
       else
         mailEditor->InsertAsQuotation(aBuf,
                                       getter_AddRefs(nodeInserted));