Skip to content

Commit

Permalink
Fix issues with print single node
Browse files Browse the repository at this point in the history
  • Loading branch information
Rarisma committed Feb 28, 2023
1 parent 72a8be6 commit fd8da39
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions StoryBuilderLib/ViewModels/Tools/PrintReportDialogVM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,12 @@ public async Task PrintSingleNode(StoryNodeItem elementItem)
SelectedNodes.Clear(); //Only print single node

PrintReports _rpt = new(this, ShellViewModel.GetModel());
await _rpt.Generate();

if (elementItem.Type == StoryItemType.StoryOverview) {CreateOverview = true; }
else { SelectedNodes.Add(elementItem); }

await new PrintReports(this, ShellViewModel.GetModel()).Generate();
_rpt.Print(await _rpt.Generate());
CreateOverview = false;
}

public void RegisterForPrint()
Expand Down

0 comments on commit fd8da39

Please sign in to comment.