[Uml-devel] kdesdk/umbrello

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


CVS commit by sstein: 

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


  M +1 -1      ChangeLog   1.31
  M +9 -1      umbrello/umlview.cpp   1.176


--- kdesdk/umbrello/ChangeLog  #1.30:1.31
@@ -6,5 +6,5 @@
 
 * Bugs fixed / wishes implemented (see http://bugs.kde.org)
-86083 86952 86958 87111 87537 88152 88245 89699
+86083 86952 86958 87111 87537 88152 88245 89553 89699
 
 

--- kdesdk/umbrello/umbrello/umlview.cpp  #1.175:1.176
@@ -1341,7 +1341,15 @@ 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);
+        printer->setColorMode(QPrinter::Color);
 
         // do not call printer.setup(); because we want no user






More information about the umbrello-devel mailing list