aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-pdf/PrintWidget.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2019-03-08 07:10:50 -0500
committerKen Moore <ken@ixsystems.com>2019-03-08 07:10:50 -0500
commit6a3199b0660ca2edbfd4c97583d31f213f186288 (patch)
tree9fe9657b13df6872deff6cd19c3c5905a1362b12 /src-qt5/desktop-utils/lumina-pdf/PrintWidget.cpp
parentGet lumina-pdf working with the poppler backend once again. (diff)
downloadlumina-6a3199b0660ca2edbfd4c97583d31f213f186288.tar.gz
lumina-6a3199b0660ca2edbfd4c97583d31f213f186288.tar.bz2
lumina-6a3199b0660ca2edbfd4c97583d31f213f186288.zip
Finish cleaning up lumina-pdf with poppler.
Ensure that the smart-cache system is working fine now (either backend)
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