diff --git a/common.pri b/common.pri index 73d8004..b69a89e 100644 --- a/common.pri +++ b/common.pri @@ -128,7 +128,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc LIMEREPORT_VERSION_MAJOR = 1 LIMEREPORT_VERSION_MINOR = 5 -LIMEREPORT_VERSION_RELEASE = 29 +LIMEREPORT_VERSION_RELEASE = 31 LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}' DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\" diff --git a/limereport/lrreportengine.cpp b/limereport/lrreportengine.cpp index 81657c5..7da7d87 100644 --- a/limereport/lrreportengine.cpp +++ b/limereport/lrreportengine.cpp @@ -316,18 +316,17 @@ void ReportEnginePrivate::internalPrintPages(ReportPages pages, QPrinter &printe if ( !m_cancelPrinting && ((printer.printRange() == QPrinter::AllPages) || ( (printer.printRange()==QPrinter::PageRange) && - (currenPage>=printer.fromPage()) && - (currenPage<=printer.toPage()) + (currenPage >= printer.fromPage()) && + (currenPage <= printer.toPage()) )) ) { printProcessors["default"]->printPage(page); - currenPage++; emit pagePrintingFinished(currenPage); QApplication::processEvents(); } - + currenPage++; } emit printingFinished(); }