comparison src/printing.cpp @ 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
comparison
equal deleted inserted replaced
175:d61405758cc9 176:c29a1078d601
155 { 155 {
156 SLPersonInfo info; 156 SLPersonInfo info;
157 slGetPersonInfoRec(query, info); 157 slGetPersonInfoRec(query, info);
158 nperson++; 158 nperson++;
159 159
160 // Check for end of page 160 // Check for the end of page
161 // KLUDGE for now 161 if (getPageInfo && ctx.lfq(10) >=
162 if (getPageInfo && ctx.lfq(10) >= APP_PRINT_HEIGHT - ctx.boundRect().height() * 1.5f) 162 APP_PRINT_HEIGHT - ctx.boundRect().height() * 1.5f)
163 { 163 {
164 if (nline > pinfo.nlinesPerPage) 164 if (nline > pinfo.nlinesPerPage)
165 pinfo.nlinesPerPage = nline; 165 pinfo.nlinesPerPage = nline;
166 166
167 pinfo.npages++; 167 pinfo.npages++;