From 131d07b4304fe364ed68dfb27194d1dd14aba05b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 16 May 2021 00:47:50 +0200 Subject: [PATCH] Update print dialog data after printing successfully This is necessary in order to get the information entered by the user in the dialog and was already done in PrintDialog(), but not Print() itself -- now do it there as well. --- src/gtk/print.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gtk/print.cpp b/src/gtk/print.cpp index f3376a6fb5..a6a3b6a01c 100644 --- a/src/gtk/print.cpp +++ b/src/gtk/print.cpp @@ -992,6 +992,8 @@ bool wxGtkPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt ) return false; } + m_printDialogData = dialog.GetPrintDialogData(); + sm_lastError = wxPRINTER_NO_ERROR; return true; }