aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-pdf
diff options
context:
space:
mode:
authorZackaryWelch <welch.zackary@gmail.com>2018-03-23 16:27:33 -0400
committerZackaryWelch <welch.zackary@gmail.com>2018-03-23 16:27:33 -0400
commitaa9509a3428d3390046012db2ff69833641edd87 (patch)
treeb606474323bef55e98f56e88a9f338c4e33125ad /src-qt5/desktop-utils/lumina-pdf
parentImproved page layout for pdfs with unequal page sizes. Currently broke all pa... (diff)
downloadlumina-aa9509a3428d3390046012db2ff69833641edd87.tar.gz
lumina-aa9509a3428d3390046012db2ff69833641edd87.tar.bz2
lumina-aa9509a3428d3390046012db2ff69833641edd87.zip
Fixed page layout for All Pages mode
Diffstat (limited to 'src-qt5/desktop-utils/lumina-pdf')
-rw-r--r--src-qt5/desktop-utils/lumina-pdf/PrintWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-pdf/PrintWidget.cpp b/src-qt5/desktop-utils/lumina-pdf/PrintWidget.cpp
index c8d093a5..954baf28 100644
--- a/src-qt5/desktop-utils/lumina-pdf/PrintWidget.cpp
+++ b/src-qt5/desktop-utils/lumina-pdf/PrintWidget.cpp
@@ -200,7 +200,7 @@ void PrintWidget::layoutPages() {
double pageHeight = pages.at(pageNum)->boundingRect().height();
//qDebug() << "Row:" << i << "Page Num:" << pageNum << "Columns:" << cols << "Floor Value: " << pageNum / cols << "f(x):" << i + (pageNum / cols);
- for(int k = i + (pageNum / cols); k < pageNum; k++) {
+ for(int k = cols * (pageNum / cols); k < pageNum; k++) {
itemWidth += pages.at(k)->boundingRect().width();
}
bgstack15