mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 05:53:27 -07:00
Creating a branch 1.1 where I will try to make the 1.1.7 build available, this means I need to merge some changes from 2.0 to here.
This commit is contained in:
parent
2a8e2475d8
commit
a03bc31aef
247 changed files with 6986 additions and 8233 deletions
|
@ -69,6 +69,12 @@ namespace Greenshot.Interop.Office {
|
|||
/// <param name="tooltip">tooltip of the image</param>
|
||||
/// <returns></returns>
|
||||
internal static bool InsertIntoExistingDocument(IWordApplication wordApplication, IWordDocument wordDocument, string tmpFile, string address, string tooltip) {
|
||||
// Bug #1517: image will be inserted into that document, where the focus was last. It will not inserted into the chosen one.
|
||||
// Solution: Make sure the selected document is active, otherwise the insert will be made in a different document!
|
||||
try {
|
||||
wordApplication.Activate();
|
||||
} catch {
|
||||
}
|
||||
if (wordApplication.Selection != null) {
|
||||
// Add Picture
|
||||
using (IInlineShape shape = AddPictureToSelection(wordApplication.Selection, tmpFile)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue