Bug 136869 - Sequence diagram objects are resized without possibilitity to change them.
Summary: Sequence diagram objects are resized without possibilitity to change them.
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-05 08:22 UTC by Jonas Nordin
Modified: 2007-04-18 21:40 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Original object (1.50 KB, image/png)
2006-11-05 08:23 UTC, Jonas Nordin
Details
The same object as an actor (1.23 KB, image/png)
2006-11-05 08:24 UTC, Jonas Nordin
Details
After the object is changed back from an actor again (1.21 KB, image/png)
2006-11-05 08:25 UTC, Jonas Nordin
Details

Note You need to log in before you can comment on or make changes to this bug.
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