RichText: Yet another hdr/ftr fix

git-svn-id: svn://ultimatepp.org/upp/trunk@10881 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-02-24 13:53:07 +00:00
parent 18c31de080
commit 8314cb20e4

View file

@ -100,7 +100,8 @@ void RichText::PaintHeaderFooter(PageDraw& pw, const Rect& page, const PaintInfo
RichContext rc = Context(page);
int last_page = -1;
int pagecount = GetHeight(page).page + 1;
for(int i = 0; last_page <= to_page; i++) {
int i = 0;
while(last_page <= to_page) {
while(last_page < rc.py.page) {
last_page++;
if(rc.header || rc.footer) {