]> git.saurik.com Git - wxWidgets.git/commitdiff
minor progress bar fix
authorKarsten Ballüder <ballueder@usa.net>
Tue, 18 May 1999 16:29:19 +0000 (16:29 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Tue, 18 May 1999 16:29:19 +0000 (16:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2501 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/printps.cpp

index 599715179f94b0089afb94407ec96649f3e8c743..56f95f30678d649e2d853cc3eadbad747ecdf66e 100644 (file)
@@ -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