From c491f154236773ff9c35f2a799e53a416219cd4e Mon Sep 17 00:00:00 2001 From: RKrom Date: Thu, 19 Jul 2012 16:06:55 +0000 Subject: [PATCH] Fixed bug for feature request #3542622, wrong logic. git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1958 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- GreenshotInterop/OfficeExport/OutlookEmailExporter.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GreenshotInterop/OfficeExport/OutlookEmailExporter.cs b/GreenshotInterop/OfficeExport/OutlookEmailExporter.cs index de143b2c2..4063f3a68 100644 --- a/GreenshotInterop/OfficeExport/OutlookEmailExporter.cs +++ b/GreenshotInterop/OfficeExport/OutlookEmailExporter.cs @@ -291,13 +291,13 @@ namespace Greenshot.Interop.Office { //MailItem newMail = COMWrapper.Cast(newItem); MailItem newMail = (MailItem)newItem; newMail.Subject = subject; - if (string.IsNullOrEmpty(to)) { + if (!string.IsNullOrEmpty(to)) { newMail.To = to; } - if (string.IsNullOrEmpty(CC)) { + if (!string.IsNullOrEmpty(CC)) { newMail.CC = CC; } - if (string.IsNullOrEmpty(BCC)) { + if (!string.IsNullOrEmpty(BCC)) { newMail.BCC = BCC; } newMail.BodyFormat = OlBodyFormat.olFormatHTML;