summaryrefslogtreecommitdiff
path: root/silx/gui/widgets/PrintPreview.py
diff options
context:
space:
mode:
Diffstat (limited to 'silx/gui/widgets/PrintPreview.py')
-rw-r--r--silx/gui/widgets/PrintPreview.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/silx/gui/widgets/PrintPreview.py b/silx/gui/widgets/PrintPreview.py
index 2b4c433..78d1bd7 100644
--- a/silx/gui/widgets/PrintPreview.py
+++ b/silx/gui/widgets/PrintPreview.py
@@ -31,7 +31,7 @@ The user can interactively move and resize the items.
"""
import sys
import logging
-from silx.gui import qt
+from silx.gui import qt, printer
__authors__ = ["V.A. Sole", "P. Knobel"]
@@ -387,7 +387,7 @@ class PrintPreviewDialog(qt.QDialog):
*None*.
"""
if self.printer is None:
- self.printer = qt.QPrinter()
+ self.printer = printer.getDefaultPrinter()
if self.printDialog is None:
self.printDialog = qt.QPrintDialog(self.printer, self)
if self.printDialog.exec_():