Simplify graph scaling in reports.. Much quicker. :)

This commit is contained in:
Mark Watkins 2011-12-14 21:23:49 +10:00
parent e273a283d3
commit 786816296a

View File

@ -1042,15 +1042,9 @@ void MainWindow::PrintReport(gGraphView *gv,QString name, QDate date)
g->m_marginbottom=tmb;
PROFILE["UseAntiAliasing"]=aa_setting;
QPixmap pm2;
if (!no_scaling) {
pm2=pm.scaledToWidth(printer_width);
} else {
pm2=pm;
}
painter.drawPixmap(0,top,pm2.width(),pm2.height(),pm2);
top+=pm2.height();
painter.drawPixmap(0,top,printer_width,full_graph_height,pm);
top+=full_graph_height;
gcnt++;
if (qprogress) {