Mercurial > hg > syntilista
comparison src/main.cpp @ 125:6e2d26e7a0b4
Add few helpers.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 10 Jul 2017 13:56:04 +0300 |
parents | a063cb8a171b |
children | b51cee929416 |
comparison
equal
deleted
inserted
replaced
124:a063cb8a171b | 125:6e2d26e7a0b4 |
---|---|
670 PersonInfo info; | 670 PersonInfo info; |
671 slGetPersonInfoRec(query, info); | 671 slGetPersonInfoRec(query, info); |
672 | 672 |
673 // Check for end of page | 673 // Check for end of page |
674 // KLUDGE for now | 674 // KLUDGE for now |
675 if (getPageInfo && | 675 if (getPageInfo && ctx.lfq(10) >= 1300.0f) |
676 ctx.m_pos.y() + (ctx.boundRect().height() * 4) >= 1300.0f / 2.0f) | |
677 { | 676 { |
678 if (nline > pinfo.nlinesPerPage) | 677 if (nline > pinfo.nlinesPerPage) |
679 pinfo.nlinesPerPage = nline; | 678 pinfo.nlinesPerPage = nline; |
680 | 679 |
681 pinfo.npages++; | 680 pinfo.npages++; |