]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed wrong range for print progress dialog
authorKarsten Ballüder <ballueder@usa.net>
Thu, 13 May 1999 15:09:59 +0000 (15:09 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Thu, 13 May 1999 15:09:59 +0000 (15:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2447 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/printps.cpp

index 053b00b275444c7b096a1bd6db2d3f95ffd2234f..cc301b7aae1c3e4e7260a780bfc4c52b1e91c843 100644 (file)
@@ -171,7 +171,7 @@ bool wxPostScriptPrinter::Print(wxWindow *parent, wxPrintout *printout, bool pro
     wxProgressDialog *progressDialog = new wxProgressDialog (
        printout->GetTitle(),
        _("Printing..."),
     wxProgressDialog *progressDialog = new wxProgressDialog (
        printout->GetTitle(),
        _("Printing..."),
-       maxPage-minPage,
+       maxPage-minPage+1,
        parent,
        /* disable parent only */ true,
        /* show abort button */ true);
        parent,
        /* disable parent only */ true,
        /* show abort button */ true);