diff options
author | Ken Moore <ken@ixsystems.com> | 2019-03-08 07:10:50 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2019-03-08 07:10:50 -0500 |
commit | 6a3199b0660ca2edbfd4c97583d31f213f186288 (patch) | |
tree | 9fe9657b13df6872deff6cd19c3c5905a1362b12 /src-qt5/desktop-utils/lumina-pdf/PrintWidget.cpp | |
parent | Get lumina-pdf working with the poppler backend once again. (diff) | |
download | lumina-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.cpp | 5 |
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) { |