mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-09 12:40:43 +00:00
Simplify graph scaling in reports.. Much quicker. :)
This commit is contained in:
parent
e273a283d3
commit
786816296a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user