Summary: | Export graphics causes all elements to resize to their native size | ||
---|---|---|---|
Product: | [Applications] umbrello | Reporter: | johnny |
Component: | general | Assignee: | Umbrello Development Group <umbrello-devel> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | carsten.hoilund, dextermagnific, franke.daniel, karbas, louis.m, morbus9000+kde, oleksiy.shchukin, ralf.habacker, rusty.robot.g |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
johnny
2007-12-12 11:49:06 UTC
*** Bug 156537 has been marked as a duplicate of this bug. *** 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. 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. Same here (KDE-3.5.9, umbrello 1.5.8). And the same here (Qt: 4.4.1, KDE: 4.1.1 Umbrello UML Modeller: 2.1.1) *** This bug has been confirmed by popular vote. *** *** Bug 151943 has been marked as a duplicate of this bug. *** *** Bug 199419 has been marked as a duplicate of this bug. *** 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()); > } > The same problem for initial and final state on state diagram. 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 *** |