aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-pdf/PrintWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/desktop-utils/lumina-pdf/PrintWidget.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-pdf/PrintWidget.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src-qt5/desktop-utils/lumina-pdf/PrintWidget.cpp b/src-qt5/desktop-utils/lumina-pdf/PrintWidget.cpp
index 53f3fa62..abb4ac17 100644
--- a/src-qt5/desktop-utils/lumina-pdf/PrintWidget.cpp
+++ b/src-qt5/desktop-utils/lumina-pdf/PrintWidget.cpp
@@ -130,10 +130,11 @@ void PrintWidget::setCurrentPage(int pageNumber) {
this->centerOn(pages.at(curPage - 1));
}
}*/
+
QSize DPI(300, 300);
if (lastPage != curPage || !BACKEND->imageSize(curPage).isNull()){
updatePreview();
- for(int i=(curPage-3); i<BACKEND->numPages(); i++){
+ for(int i=(curPage-3); i<=BACKEND->numPages(); i++){
if(i<0){ continue; }
else if( i < (curPage-2) ){ BACKEND->clearHash(i); }
else if( i > (curPage+2) ){ BACKEND->clearHash(i); }
@@ -146,7 +147,7 @@ void PrintWidget::setCurrentPage(int pageNumber) {
}
}
}
- qDebug() << "Current page set to " << pageNumber << "\n";
+ //qDebug() << "Current page set to " << pageNumber << "\n";
}
void PrintWidget::highlightText(TextData *text) {
bgstack15