Replace pageRect() by paperRect() for borderless printing

This commit is contained in:
Balthasar Reuter authored and GitHub committed 2018-09-28 17:46:47 +02:00
1 parent d3e21fe548
commit 15077b2e74
1 file changed
+1 -1
+1 -1
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)