mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.DocTypes
git-svn-id: svn://ultimatepp.org/upp/trunk@2813 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
bdd13783c0
commit
41e5dc2f77
1 changed files with 3 additions and 1 deletions
|
|
@ -237,7 +237,8 @@ void PutQTF(DocReport& r, const char *qtf)
|
|||
|
||||
Size sz = r.GetPageSize();
|
||||
Size pgsz = r.GetSize();
|
||||
int lastpage = text.GetHeight(pgsz).page;
|
||||
PageY end = text.GetHeight(pgsz);
|
||||
int lastpage = end.page;
|
||||
int x = (sz.cx - pgsz.cx) / 2;
|
||||
int y = (sz.cy - pgsz.cy) / 2;
|
||||
for(int i = 0; i <= lastpage; i++) {
|
||||
|
|
@ -250,6 +251,7 @@ void PutQTF(DocReport& r, const char *qtf)
|
|||
paintinfo.bottom = PageY(i + 1, 0);
|
||||
text.Paint(pw, Rect(Point(x, y), pgsz), paintinfo);
|
||||
}
|
||||
r.SetYPos(end.y);
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue