From 41e5dc2f778a264975860fbaa39c553e8cf8fdbd Mon Sep 17 00:00:00 2001 From: cxl Date: Sat, 23 Oct 2010 08:20:55 +0000 Subject: [PATCH] .DocTypes git-svn-id: svn://ultimatepp.org/upp/trunk@2813 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/DocTypes/Report.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/uppsrc/DocTypes/Report.cpp b/uppsrc/DocTypes/Report.cpp index 439419bf1..afe257001 100644 --- a/uppsrc/DocTypes/Report.cpp +++ b/uppsrc/DocTypes/Report.cpp @@ -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