Bug 136869

Summary: Sequence diagram objects are resized without possibilitity to change them.
Product: [Applications] umbrello Reporter: Jonas Nordin <jonas.nordin>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Original object
The same object as an actor
After the object is changed back from an actor again

Description Jonas Nordin 2006-11-05 08:22:24 UTC
Version:           1.5.5 (using KDE KDE 3.5.5)
Installed from:    Gentoo Packages
Compiler:          g++ 4.1.1 
OS:                Linux

When you select properties on an object in the sequence diagram and then select "Draw as actor". The object is changed ok. If you then un-select the same option the new object box is much bigger than original and there is no way to change the size vertically only horizontally.
Comment 1 Jonas Nordin 2006-11-05 08:23:25 UTC
Created attachment 18409 [details]
Original object
Comment 2 Jonas Nordin 2006-11-05 08:24:15 UTC
Created attachment 18410 [details]
The same object as an actor
Comment 3 Jonas Nordin 2006-11-05 08:25:25 UTC
Created attachment 18411 [details]
After the object is changed back from an actor again

Even though there is a resize button in the lower right corner, the size can
only be changed horizontally.
Comment 4 Oliver Kellogg 2007-04-18 21:40:41 UTC
SVN commit 655572 by okellogg:

updateComponentSize(): Let wt_Object proceed to setSize().
BUG:136869


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


--- branches/KDE/3.5/kdesdk/umbrello/ChangeLog #655571:655572
@@ -13,6 +13,7 @@
 * Crash on adding operation to class with Advanced Code Generators enabled (131528)
 * Javascript wrong Code Generation (135527)
 * Javascript Code Generation creates bad format methods (135540)
+* Sequence diagram object size incorrect after toggling "Draw as Actor" (136869)
 * Incorrect Association Properties text (139872)
 * Buttons are not displayed (139913)
 * Java 5 generics support (140669)
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/umlwidget.cpp #655571:655572
@@ -824,7 +824,8 @@
     const QSize minSize = calculateSize();
     const int w = minSize.width();
     const int h = minSize.height();
-    if (m_Type != Uml::wt_ForkJoin && getWidth() >= w && getHeight() >= h)
+    if (m_Type != Uml::wt_ForkJoin && m_Type != Uml::wt_Object &&
+        getWidth() >= w && getHeight() >= h)
         return;
     setSize(w, h);
     adjustAssocs( getX(), getY() );  // adjust assoc lines