From 9c171b7e0b7f12dbba345f1cbd01ad44f7ef0f3a Mon Sep 17 00:00:00 2001 From: Blake-Madden <66873089+Blake-Madden@users.noreply.github.com> Date: Fri, 11 Oct 2024 06:47:09 -0400 Subject: [PATCH] Fix print all in demo --- demo/demo.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/demo/demo.cpp b/demo/demo.cpp index 6f087574..4bf5f487 100644 --- a/demo/demo.cpp +++ b/demo/demo.cpp @@ -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.