[Uml-devel] [Bug 89553] what you see is not what you get when exporting to EPS
Sebastian Stein
seb_stein at gmx.de
Mon Sep 20 07:05:02 UTC 2004
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=89553
------- Additional Comments From seb_stein gmx de 2004-09-20 16:04 -------
Pekka JÀÀskelÀinen <pjaaskel cs tut fi> [040920 15:48]:
> No, you got it exactly the wrong way around. ScreenResolution should be
> used for EPS, and, if you think it's necessary, the PrinterResolution for
> the other formats (I didn't actually test whether it breaks the other
> formats for some reason). The layouting with EPS is still broken for me
> because of PrinterResolution.
Have you tried the latest CVS HEAD version? I have tested it with png and
eps and it works. Here are my changes:
--- 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
Sebastian
More information about the umbrello-devel
mailing list