From 15077b2e74773fe05e238cd77b3ae4eaf065c7a5 Mon Sep 17 00:00:00 2001 From: Balthasar Reuter Date: Fri, 28 Sep 2018 17:46:47 +0200 Subject: [PATCH] Replace pageRect() by paperRect() for borderless printing --- photobooth/printer/PrinterPyQt5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/photobooth/printer/PrinterPyQt5.py b/photobooth/printer/PrinterPyQt5.py index 203665a..f6ce3e4 100644 --- a/photobooth/printer/PrinterPyQt5.py +++ b/photobooth/printer/PrinterPyQt5.py @@ -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)