*ScatterCtrl_Demo: Fixed report error

git-svn-id: svn://ultimatepp.org/upp/trunk@6420 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
koldo 2013-10-11 20:04:16 +00:00
parent 7ff96e183a
commit d51b520863

View file

@ -97,10 +97,10 @@ void ScatterCtrl_Demo::OnSel()
void ScatterCtrl_Demo::Preview()
{
Report r;
const Drawing &w = Examples()[examplesList.GetCursor()].ctrl()->Scatter().GetDrawing();
r.Landscape();
Size pageSize = r.GetPageSize();
Size pageSize = r.GetPageSize();
const Drawing &w = Examples()[examplesList.GetCursor()].ctrl()->Scatter().GetDrawing(true);
r.DrawDrawing(0, 0, pageSize.cx, pageSize.cy, w);
Perform(r);