# HG changeset patch # User Matti Hamalainen # Date 1499256534 -10800 # Node ID 71cfb7d96cfc2347a2b3c8083b295914fa73bd81 # Parent e03f6adf108d0470dc7b65da89dcf92fac40d584 If printer object->fromPage() and toPage() return 0, we are supposed to print all pages, thus adjust accordingly. diff -r e03f6adf108d -r 71cfb7d96cfc src/main.cpp --- a/src/main.cpp Wed Jul 05 12:53:13 2017 +0300 +++ b/src/main.cpp Wed Jul 05 15:08:54 2017 +0300 @@ -580,6 +580,10 @@ if (!ret) return; + // If from and to are 0, we are supposed to print all pages + if (printer->fromPage() == 0 && printer->toPage() == 0) + printer->setFromTo(1, pinfo.npages); + // Setup rest of the progress dialog here progress.setWindowModality(Qt::ApplicationModal); progress.setMinimum(printer->fromPage() - 1);