# HG changeset patch # User Matti Hamalainen # Date 1505894123 -10800 # Node ID d119235d3df052a45e1d8a6e2f07e87cee7b97ea # Parent c29a1078d6012a9179d54c49c5431fc30d58c7e3 This comment was no longer relevant. diff -r c29a1078d601 -r d119235d3df0 src/printing.cpp --- a/src/printing.cpp Wed Sep 20 09:49:09 2017 +0300 +++ b/src/printing.cpp Wed Sep 20 10:55:23 2017 +0300 @@ -26,9 +26,7 @@ printer.setPageMargins(QMarginsF(0.25f, 0.5f, 0.25f, 0.5f), QPageLayout::Inch); printer.setColorMode(QPrinter::GrayScale); - // We need to get the page count here, and also need it again in - // printDocument(), but there is no sane way to pass that there, - // so some code duplication is unfortunately necessary + // We need to get the page count and line counts per page here pinfo.npages = 0; pinfo.nlinesPerPage = 0;