Small code cleanup

This commit is contained in:
Robin 2020-03-03 12:38:48 +01:00
commit 152eb86ae4
3 changed files with 3 additions and 3 deletions

View file

@ -32,7 +32,6 @@ using System.Threading;
using System.Windows.Forms;
using System.Windows.Forms.Integration;
using Greenshot.Configuration;
using Greenshot.Experimental;
using Greenshot.Forms;
using Greenshot.Help;
using Greenshot.Helpers;

View file

@ -18,18 +18,18 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Windows.Forms;
using Greenshot.Configuration;
using GreenshotPlugin.Core;
using GreenshotPlugin.IniFile;
using log4net;
namespace Greenshot.Experimental {
namespace Greenshot.Helpers {
/// <summary>
/// Description of RssFeedHelper.
/// </summary>

View file

@ -227,6 +227,7 @@ namespace GreenshotOfficePlugin.OfficeExport
}
try
{
// When called for Outlook, the follow error is created: This object model command is not available in e-mail
using var activeWindow = DisposableCom.Create(wordDocument.ComObject.ActiveWindow);
activeWindow.ComObject.Activate();
using var activePane = DisposableCom.Create(activeWindow.ComObject.ActivePane);