Bug 153900 - Export graphics causes all elements to resize to their native size
Summary: Export graphics causes all elements to resize to their native size
Status: RESOLVED DUPLICATE of bug 152757
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
: 151943 156537 199419 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-12-12 11:49 UTC by johnny
Modified: 2012-05-31 21:05 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description johnny 2007-12-12 11:49:06 UTC
Version:            (using KDE KDE 3.5.8)
Installed from:    Compiled From Sources
OS:                Linux

When exporting graphics all the elementse in a component diagram get resized to their original size.

This MAY be ok for components, because they go back to fit their content (the name), but for sure it makes the rectangle tool unuseful. I drawed some text and rectangles around my picture but I cannot export it because the rectangle's native size is a small square.

Can you fix this AND backport to 3.8 please? Thank you.
Comment 1 Sharan Rao 2008-02-16 19:48:49 UTC
*** Bug 156537 has been marked as a duplicate of this bug. ***
Comment 2 Tommy Mattila 2008-03-05 09:24:35 UTC
I see this bug in umbrello version 1.5.8 on KDE 3.5.8 on linux. The same problem occurs when printing the diagram. The note-box and rectangle box return to their native size.
Comment 3 Orlando Garcia 2008-05-31 13:34:19 UTC
I have also this problem in version 1.5.8 on KDE 3.5.9. This error happends to me when I try to export a diagram to svg or eps, but not in other format. I have taken a look to the source code and I haven't found the root of the problem, but I have managed to avoid the bug commenting in "umlviewimageexportermodel.cpp" file, on exportViewToEps and exportViewToSvg functions the following lines (262, 280, 344 and 356 lines):

view->forceUpdateWidgetFontMetrics(painter);

and

view->forceUpdateWidgetFontMetrics(0);

The problem seems to be in UMLView::forceUpdateWidgetFontMEtrics() function, but I get lost trying to find the bug.

Regards,

Orlando García.
Comment 4 Daniel Franke 2008-07-05 19:21:25 UTC
Same here (KDE-3.5.9, umbrello 1.5.8).
Comment 5 Mar 2008-09-29 20:56:00 UTC
And the same here (Qt: 4.4.1, KDE: 4.1.1 Umbrello UML Modeller: 2.1.1)
Comment 6 Mar 2008-09-29 20:57:51 UTC
*** This bug has been confirmed by popular vote. ***
Comment 7 Pino Toscano 2010-01-26 18:05:07 UTC
*** Bug 151943 has been marked as a duplicate of this bug. ***
Comment 8 Pino Toscano 2010-01-26 18:05:23 UTC
*** Bug 199419 has been marked as a duplicate of this bug. ***
Comment 9 louis 2011-07-13 21:56:48 UTC
I hope, the following changes will fix the bug: 

new lines for widgets/boxwidget.h: 
57a58,62
> 
>     /** 
>      *        Overwrites method from UMLWidget
>        */
>     virtual QSize calculateSize();



new lines for widgets/boxwidget.cpp: 
44a45,51
> 
> QSize BoxWidget::calculateSize()
> {
>     //return QSize(40, 80);
>       return QSize(UMLWidget::getWidth(), UMLWidget::getHeight());
> }
>
Comment 10 rusty.robot.g 2011-10-18 17:28:35 UTC
The same problem for initial and final state on state diagram.
Comment 11 Ralf Habacker 2012-05-31 21:05:47 UTC
While the affected widgets may be different, the root cause of this bug is the same as the bug this is a duplicate of.

*** This bug has been marked as a duplicate of bug 152757 ***