From 6629d383c9893972e72e5be78bfea47ff3dd4d14 Mon Sep 17 00:00:00 2001 From: RKrom Date: Mon, 22 Apr 2013 14:37:48 +0000 Subject: [PATCH] Fixed error when exporting to outlook meetings (this needs to be enabled in the greenshot.ini) git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2579 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- GreenshotOfficePlugin/OfficeExport/OutlookEmailExporter.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/GreenshotOfficePlugin/OfficeExport/OutlookEmailExporter.cs b/GreenshotOfficePlugin/OfficeExport/OutlookEmailExporter.cs index b036b05dd..45221eb6a 100644 --- a/GreenshotOfficePlugin/OfficeExport/OutlookEmailExporter.cs +++ b/GreenshotOfficePlugin/OfficeExport/OutlookEmailExporter.cs @@ -192,7 +192,10 @@ namespace Greenshot.Interop.Office { // Make sure the inspector is activated, only this way the word editor is active! // This also ensures that the window is visible! inspector.Activate(); - bool isTextFormat = OlBodyFormat.olFormatPlain.Equals(mailItem.BodyFormat); + bool isTextFormat = false; + if (isMail) { + isTextFormat = OlBodyFormat.olFormatPlain.Equals(mailItem.BodyFormat); + } if (isAppointment || !isTextFormat) { // Check for wordmail, if so use the wordexporter // http://msdn.microsoft.com/en-us/library/dd492012%28v=office.12%29.aspx