mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 13:10:00 -07:00
Small code cleanup
This commit is contained in:
parent
0202c2fa8b
commit
152eb86ae4
3 changed files with 3 additions and 3 deletions
|
@ -32,7 +32,6 @@ using System.Threading;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using System.Windows.Forms.Integration;
|
using System.Windows.Forms.Integration;
|
||||||
using Greenshot.Configuration;
|
using Greenshot.Configuration;
|
||||||
using Greenshot.Experimental;
|
|
||||||
using Greenshot.Forms;
|
using Greenshot.Forms;
|
||||||
using Greenshot.Help;
|
using Greenshot.Help;
|
||||||
using Greenshot.Helpers;
|
using Greenshot.Helpers;
|
||||||
|
|
|
@ -18,18 +18,18 @@
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
using Greenshot.Configuration;
|
using Greenshot.Configuration;
|
||||||
using GreenshotPlugin.Core;
|
using GreenshotPlugin.Core;
|
||||||
using GreenshotPlugin.IniFile;
|
using GreenshotPlugin.IniFile;
|
||||||
using log4net;
|
using log4net;
|
||||||
|
|
||||||
namespace Greenshot.Experimental {
|
namespace Greenshot.Helpers {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Description of RssFeedHelper.
|
/// Description of RssFeedHelper.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -227,6 +227,7 @@ namespace GreenshotOfficePlugin.OfficeExport
|
||||||
}
|
}
|
||||||
try
|
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);
|
using var activeWindow = DisposableCom.Create(wordDocument.ComObject.ActiveWindow);
|
||||||
activeWindow.ComObject.Activate();
|
activeWindow.ComObject.Activate();
|
||||||
using var activePane = DisposableCom.Create(activeWindow.ComObject.ActivePane);
|
using var activePane = DisposableCom.Create(activeWindow.ComObject.ActivePane);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue