[Uml-devel] KDE_3_3_BRANCH: kdesdk/umbrello/umbrello

Sebastian Stein seb.kde at hpfsc.de
Mon Sep 20 01:25:01 UTC 2004


CVS commit by sstein: 

backport of fix for bug 89553 by pjaaskel at cs.tut.fi, Achim Spangler and me


  M +8 -1      umlview.cpp   1.166.2.1


--- kdesdk/umbrello/umbrello/umlview.cpp  #1.166:1.166.2.1
@@ -1325,5 +1325,12 @@ void UMLView::printToFile(QString filena
         // user-coordinates, set to the resolution
         // of the printer (which should be 72dpi here)
-        QPrinter *printer = new QPrinter(QPrinter::PrinterResolution);
+        QPrinter *printer;
+
+        if (isEPS == true)
+        {
+                printer = new QPrinter(QPrinter::PrinterResolution);
+        } else {
+                printer = new QPrinter(QPrinter::ScreenResolution);
+        }
         printer->setOutputToFile(true);
         printer->setOutputFileName(filename);






More information about the umbrello-devel mailing list