Skip to content

Commit

Permalink
fix #41611: shift on print
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed Feb 28, 2015
1 parent 6b554a9 commit 32f6a43
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mscore/file.cpp
Expand Up @@ -1484,6 +1484,8 @@ void MuseScore::printFile()

printerDev.setCreator("MuseScore Version: " VERSION);
printerDev.setFullPage(true);
if (!printerDev.setPageMargins(QMarginsF()))
qDebug("unable to clear printer margins");
printerDev.setColorMode(QPrinter::Color);
printerDev.setDocName(cs->name());
printerDev.setDoubleSidedPrinting(pf->twosided());
Expand Down Expand Up @@ -1855,6 +1857,8 @@ bool MuseScore::savePdf(Score* cs, const QString& saveName)

printerDev.setCreator("MuseScore Version: " VERSION);
printerDev.setFullPage(true);
if (!printerDev.setPageMargins(QMarginsF()))
qDebug("unable to clear printer margins");
printerDev.setColorMode(QPrinter::Color);
printerDev.setDocName(cs->name());
printerDev.setDoubleSidedPrinting(pf->twosided());
Expand Down Expand Up @@ -1906,6 +1910,8 @@ bool MuseScore::savePdf(QList<Score*> cs, const QString& saveName)

printerDev.setCreator("MuseScore Version: " VERSION);
printerDev.setFullPage(true);
if (!printerDev.setPageMargins(QMarginsF()))
qDebug("unable to clear printer margins");
printerDev.setColorMode(QPrinter::Color);
printerDev.setDocName(firstScore->name());
printerDev.setDoubleSidedPrinting(pf->twosided());
Expand Down

0 comments on commit 32f6a43

Please sign in to comment.