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
This commit is contained in:
RKrom 2013-04-22 14:37:48 +00:00
commit 6629d383c9

View file

@ -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