Bug 76891 - broken "Export as Picture" with EPS format
Summary: broken "Export as Picture" with EPS format
Status: RESOLVED WORKSFORME
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Other
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
: 97779 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-06 18:43 UTC by Yannick Gingras
Modified: 2005-01-27 12:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Patch for the EPS export problem (529 bytes, patch)
2004-03-06 18:48 UTC, Yannick Gingras
Details
Sample broken EPS (23.67 KB, image/x-eps)
2004-03-06 18:51 UTC, Yannick Gingras
Details
Sample correct EPS (23.68 KB, image/x-eps)
2004-03-06 18:54 UTC, Yannick Gingras
Details
Umbrello project for both samples (31.36 KB, application/x-uml)
2004-03-06 18:56 UTC, Yannick Gingras
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yannick Gingras 2004-03-06 18:43:40 UTC
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());
Comment 1 Yannick Gingras 2004-03-06 18:48:35 UTC
Created attachment 5048 [details]
Patch for the EPS export problem

Resent because it seems to be broken by the line wrapping in the comment box.
Comment 2 Yannick Gingras 2004-03-06 18:51:44 UTC
Created attachment 5049 [details]
Sample broken EPS

This is how my diagram gets exported.
Comment 3 Yannick Gingras 2004-03-06 18:54:02 UTC
Created attachment 5051 [details]
Sample correct EPS

This is how the diagram should be exported.
Comment 4 Yannick Gingras 2004-03-06 18:56:31 UTC
Created attachment 5052 [details]
Umbrello project for both samples

This is the project from which I exported both sample diagrams.
Comment 5 Jonathan Riddell 2004-03-12 10:53:30 UTC
I can't confirm this problem, can anyone else?
Comment 6 Pekka Vuorela 2004-04-29 13:17:16 UTC
I'm having the same problem with Umbrello from Debian Sarge (KDE 3.2.2).
Relation lines end prematurely in the bottom and right edges of the classes. Sometimes exporting eps fixes some of the lines by making them start from the inside of the classes (e.g. the whole arrow of the "implements" association can't be seen on the screen but the eps is ok).
Comment 7 Jonathan Riddell 2004-05-28 00:11:36 UTC
Unfortunatly I think I shall have to close this entry since I can not recreate it at all running KDE 3.2.2 on Debian unstable.

If anyone else can be found to test the problem that would be most useful.
Comment 8 Pekka Vuorela 2004-05-28 08:45:43 UTC
If it's any help, I noticed that this bug doesn't appear if I force the DPI of the X server to 75.
Comment 9 marco 2004-08-23 17:40:14 UTC
I have this (silly) problem!
Debian Sarge - KDE 3.2.3 - Umbrello 1.2.2

Please correct this bug - eps output is the most important (IMHO)!
Comment 10 Oliver Kellogg 2004-08-23 22:39:12 UTC
Um, did you try with umbrello-1.3?
The respective code in umlview.cpp was changed.
Comment 11 marco 2004-08-24 14:09:14 UTC
There's no debian package for umbrello-1.3 :-(

Have you tried eps export on that version?
Could I help to make the deb package?
Comment 12 Jonathan Riddell 2004-08-24 16:48:19 UTC
I have just packages a .deb for Debian Unstable.  Strange that the Debian people havn't done so yet.  http://uml.sf.net/download.php  Please test.
Comment 13 marco 2004-08-26 00:35:56 UTC
Have you told to kde sdk people that a new release of umbrello exists?
On packages.debian.org I can see that umbrello deb packages are maintained together in the kdesdk package by Ben Burton (bab@debian.org).
I think that they should submit a new release of the kdesdk source package.
Comment 14 Jonathan Riddell 2004-08-26 00:39:52 UTC
> Have you told to kde sdk people that a new release of umbrello exists?

Umbrello is part of KDE, we release with KDE.

>I think that they should submit a new release of the kdesdk source package. 
 
I'm sure there is a reason for kdesdk (which includes Umbrello) not being updated in Debian yet, they will be aware that there is a new release.
Comment 15 Jonathan Riddell 2005-01-27 12:25:12 UTC
*** Bug 97779 has been marked as a duplicate of this bug. ***