Replace pageRect() by paperRect() for borderless printing

This commit is contained in:
Balthasar Reuter
2018-09-28 17:46:47 +02:00
committed by GitHub
parent d3e21fe548
commit 15077b2e74

View File

@@ -53,7 +53,7 @@ class PrinterPyQt5(Printer):
logging.info('Printing picture')
picture = picture.scaled(self._printer.pageRect().size(),
picture = picture.scaled(self._printer.paperRect().size(),
QtCore.Qt.KeepAspectRatio,
QtCore.Qt.SmoothTransformation)