.DocTypes

git-svn-id: svn://ultimatepp.org/upp/trunk@2813 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2010-10-23 08:20:55 +00:00
parent bdd13783c0
commit 41e5dc2f77

View file

@ -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