mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 05:23:24 -07:00
BUG-2125: Another fix for DISP_E_TYPEMISMATCH [skip ci]
This commit is contained in:
parent
bbdce08d08
commit
2caa0d3d55
1 changed files with 2 additions and 1 deletions
|
@ -45,7 +45,8 @@ namespace Greenshot.Interop.Office {
|
|||
OneNotePage newPage = new OneNotePage();
|
||||
string unfiledNotesSectionId = GetSectionId(oneNoteApplication, SpecialLocation.slUnfiledNotesSection);
|
||||
if(unfiledNotesSectionId != null) {
|
||||
string pageId;
|
||||
// ReSharper disable once RedundantAssignment
|
||||
string pageId = "";
|
||||
oneNoteApplication.CreateNewPage(unfiledNotesSectionId, out pageId, NewPageStyle.npsDefault);
|
||||
newPage.ID = pageId;
|
||||
// Set the new name, this is automatically done in the export to page
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue