Skip to content

Commit

Permalink
Fix print all in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed Oct 11, 2024
1 parent 4492045 commit 9c171b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions demo/demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2205,6 +2205,9 @@ void MyFrame::OnPrintAll([[maybe_unused]] wxCommandEvent& event)

wxPrinter printer;
printer.GetPrintDialogData().SetPrintData(canvases[0]->GetPrinterSettings());
printer.GetPrintDialogData().SetAllPages(true);
printer.GetPrintDialogData().SetFromPage(1);
printer.GetPrintDialogData().SetToPage(canvases.size());
if (!printer.Print(this, printOut.get(), true) )
{
// just show a message if a real error occurred. They may have just cancelled.
Expand Down

0 comments on commit 9c171b7

Please sign in to comment.