CtrlLib: Automatic landscape mode for RichText print

git-svn-id: svn://ultimatepp.org/upp/trunk@2886 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2010-12-04 19:40:55 +00:00
parent 1af459d936
commit 4b01db146b

View file

@ -465,6 +465,7 @@ bool Print(const RichText& text, const Rect& page, int currentpage, const char *
PrinterJob pj(name);
pj.CurrentPage(currentpage);
pj.PageCount(text.GetHeight(page).page + 1);
pj.Landscape(page.GetWidth() > page.GetHeight());
if(pj.Execute()) {
Print(pj, text, page, pj.GetPages());
return true;