From 32f6a43a0746baebb26d6122f131ad6b19a157bb Mon Sep 17 00:00:00 2001 From: Marc Sabatella Date: Sat, 28 Feb 2015 13:42:56 -0700 Subject: [PATCH] fix #41611: shift on print --- mscore/file.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mscore/file.cpp b/mscore/file.cpp index e373a58ab587..b4da41827718 100644 --- a/mscore/file.cpp +++ b/mscore/file.cpp @@ -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()); @@ -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()); @@ -1906,6 +1910,8 @@ bool MuseScore::savePdf(QList 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());