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.
This commit is contained in:
Vadim Zeitlin
2021-05-16 00:47:50 +02:00
parent 16ca2df0c4
commit 131d07b430

View File

@@ -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;
}