From 86501b45d938ff239692af985532df92a382ef7c Mon Sep 17 00:00:00 2001 From: Anton Thomasson Date: Wed, 17 Feb 2021 22:15:04 +0100 Subject: [PATCH] Fix total number of pages with ranges Relevant for progress reporting and URF file headers --- src/convertworker.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/convertworker.cpp b/src/convertworker.cpp index 0573feb..00cbe49 100644 --- a/src/convertworker.cpp +++ b/src/convertworker.cpp @@ -61,6 +61,9 @@ void ConvertWorker::convertPdf(QNetworkRequest request, QString filename, QTempo PageRangeHigh=pages; } + // Actual number of pages to print + pages = PageRangeHigh-PageRangeLow; + bool urf = false; bool ps = false; bool pdf = false;