mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
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:
parent
18c31de080
commit
8314cb20e4
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue