Graphics/UMLGraphicsView.py

changeset 3158
c91f976a2395
parent 3048
83f86da6344e
child 3160
209a07d7e401
--- a/Graphics/UMLGraphicsView.py	Thu Dec 26 18:35:47 2013 +0100
+++ b/Graphics/UMLGraphicsView.py	Fri Dec 27 11:39:08 2013 +0100
@@ -418,7 +418,7 @@
         )
         printerName = Preferences.getPrinter("PrinterName")
         if printerName:
-            self.setPrinterName(printerName)
+            printer.setPrinterName(printerName)
         
         printDialog = QPrintDialog(printer, self)
         if printDialog.exec_():
@@ -449,7 +449,7 @@
         )
         printerName = Preferences.getPrinter("PrinterName")
         if printerName:
-            self.setPrinterName(printerName)
+            printer.setPrinterName(printerName)
         
         preview = QPrintPreviewDialog(printer, self)
         preview.paintRequested[QPrinter].connect(self.__printPreviewPrint)

eric ide

mercurial