From 199b605f1fbcd0b0e9e68036533f9303178d415b Mon Sep 17 00:00:00 2001 From: Aleksei Kanash Date: Mon, 30 Jul 2012 10:31:34 +0300 Subject: [PATCH] Importing a PDF document puts the first page of the PDF as Page 1. --- src/adaptors/UBImportPDF.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adaptors/UBImportPDF.cpp b/src/adaptors/UBImportPDF.cpp index f2582469..1457ce18 100644 --- a/src/adaptors/UBImportPDF.cpp +++ b/src/adaptors/UBImportPDF.cpp @@ -80,7 +80,7 @@ bool UBImportPDF::addFileToDocument(UBDocumentProxy* pDocument, const QFile& pFi for(int pdfPageNumber = 1; pdfPageNumber <= pdfPageCount; pdfPageNumber++) { - int pageIndex = documentPageCount + (pdfPageNumber - 1); + int pageIndex = documentPageCount + pdfPageNumber; UBApplication::showMessage(tr("Importing page %1 of %2").arg(pdfPageNumber).arg(pdfPageCount), true); UBGraphicsScene* scene = 0;