diff --git a/src/generic/printps.cpp b/src/generic/printps.cpp index 599715179f..56f95f3067 100644 --- a/src/generic/printps.cpp +++ b/src/generic/printps.cpp @@ -168,7 +168,7 @@ bool wxPostScriptPrinter::Print(wxWindow *parent, wxPrintout *printout, bool pro wxBeginBusyCursor(); int - pagesPerCopy = maxPage-minPage+1, + pagesPerCopy = m_printDialogData.GetToPage()-m_printDialogData.GetFromPage()+1, totalPages = pagesPerCopy * m_printDialogData.GetNoCopies(), printedPages = 0; // Open the progress bar dialog