fix printing
authorKonrad Rosenbaum <konrad@silmor.de>
Sun, 5 Feb 2017 13:18:21 +0000 (14:18 +0100)
committerKonrad Rosenbaum <konrad@silmor.de>
Sun, 5 Feb 2017 13:18:21 +0000 (14:18 +0100)
Change-Id: I0b0df7a691ba9790089d101ea039caf179f23c75

commonlib/templates/labeldlg.cpp

index 4d6c6e7..24a192f 100644 (file)
@@ -557,6 +557,7 @@ bool MLabelConfig::configurePrinter(QPrinter&prn ) const
        mr=set.value("marginRight").toDouble();
        mb=set.value("marginBottom").toDouble();
        mt=set.value("marginTop").toDouble();
+       prn.setFullPage(true);
        prn.setPageMargins(QMarginsF(ml,mr,mb,mt),QPageLayout::Millimeter);
        prn.setDuplex(QPrinter::DuplexMode(set.value("duplex",QPrinter::DuplexAuto).toInt()));
        prn.setOrientation((set.value("orientation","portrait").toString()=="portrait")?QPrinter::Portrait:QPrinter::Landscape);