changeset 176:c29a1078d601

This page end check is not a kludge anymore, really .. I suppose.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 20 Sep 2017 09:49:09 +0300
parents d61405758cc9
children d119235d3df0
files src/printing.cpp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/printing.cpp	Wed Sep 20 09:48:50 2017 +0300
+++ b/src/printing.cpp	Wed Sep 20 09:49:09 2017 +0300
@@ -157,9 +157,9 @@
         slGetPersonInfoRec(query, info);
         nperson++;
 
-        // Check for end of page
-        // KLUDGE for now
-        if (getPageInfo && ctx.lfq(10) >= APP_PRINT_HEIGHT - ctx.boundRect().height() * 1.5f)
+        // Check for the end of page
+        if (getPageInfo && ctx.lfq(10) >=
+            APP_PRINT_HEIGHT - ctx.boundRect().height() * 1.5f)
         {
             if (nline > pinfo.nlinesPerPage)
                 pinfo.nlinesPerPage = nline;