Bug 147069 - the size of a fork/join is not restored
Summary: the size of a fork/join is not restored
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal (vote)
Target Milestone: ---
Assignee: Oliver Kellogg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-22 02:24 UTC by meyerm
Modified: 2007-06-22 08:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description meyerm 2007-06-22 02:24:44 UTC
Version:           1.5.7 (using KDE 3.5.7, Gentoo)
Compiler:          Target: i686-pc-linux-gnu
OS:                Linux (i686) release 2.6.21-gentoo-r2

When resizing a fork/join within a activity diagram its size is not restored when loading the file.
Comment 1 Oliver Kellogg 2007-06-22 08:15:06 UTC
SVN commit 678729 by okellogg:

updateComponentSize(): Apparently this is invoked while loading.
That is bad because it spoils the loaded dimensions.
BUG:147069


 M  +1 -0      ChangeLog  
 M  +2 -0      umbrello/umlwidget.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/ChangeLog #678728:678729
@@ -5,6 +5,7 @@
 * Wrong pascal code generation (146676)
 * Crash when linking to undefined xmi.id (146748)
 * End Activity Symbol gets invalid when line thickness is increased (146925)
+* The size of a fork/join is not restored (147069)
 
 Version 1.5.71
 
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/umlwidget.cpp #678728:678729
@@ -821,6 +821,8 @@
 }
 
 void UMLWidget::updateComponentSize() {
+    if (m_pDoc->loading())
+        return;
     const QSize minSize = calculateSize();
     const int w = minSize.width();
     const int h = minSize.height();