diff options
author | ZackaryWelch <welch.zackary@gmail.com> | 2018-03-23 16:27:33 -0400 |
---|---|---|
committer | ZackaryWelch <welch.zackary@gmail.com> | 2018-03-23 16:27:33 -0400 |
commit | aa9509a3428d3390046012db2ff69833641edd87 (patch) | |
tree | b606474323bef55e98f56e88a9f338c4e33125ad /src-qt5/desktop-utils/lumina-pdf | |
parent | Improved page layout for pdfs with unequal page sizes. Currently broke all pa... (diff) | |
download | lumina-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.cpp | 2 |
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(); } |