[Uml-devel] [Bug 76891] New: broken "Export as Picture" with EPS format

Yannick Gingras ygingras at ygingras.net
Sat Mar 6 14:37:01 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=76891      
           Summary: broken "Export as Picture" with EPS format
           Product: umbrello
           Version: unspecified
          Platform: Debian testing
        OS/Version: other
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: umbrello-devel.kde.org
        ReportedBy: ygingras ygingras net


Version:           1.2-1 (using KDE KDE 3.1.5)
Installed from:    Debian testing/unstable Packages
Compiler:          gcc (GCC) 3.3.3 20040125 (prerelease) (Debian) 
OS:          Other

Exporting a class diagram as a EPS file cause the relation lines to be shorter that they should be and not to connect classes together.  The following patch resolves the problem but I can't assert that it has no side effects.

Tested on Debian Sarge and Mandrake 9.1.

--- umbrello-1.2/umbrello/umbrello/umlview.cpp  2004-01-03 23:15:37.000000000 -0500
+++ umbrello-1.2-hacked/umbrello/umbrello/umlview.cpp   2004-03-06 12:33:38.000000000 -0500
 @ -1479,7 +1479,9  @
        // make sure the widget sizes will be according to the
        // actually used printer font, important for getDiagramRect()
        // and the actual painting
-       forceUpdateWidgetFontMetrics(painter);
+       if (!isEPS) {
+           forceUpdateWidgetFontMetrics(painter);
+       }

        QRect rect = getDiagramRect();
        painter->translate(-rect.x(),-rect.y());




More information about the umbrello-devel mailing list