Version: 1.5 (using KDE 3.5.0, Debian Package 4:3.5.0-1 (testing/unstable)) Compiler: Target: i486-linux-gnu OS: Linux (i686) release 2.6.8-2-686 When drawing ER diagrams, every single association will add a blank line in the entity attributes. The entity cannot be resized, and it results in a huge waste of space, and in unpretty diagrams.
I can't confirm this when adding associations. However, when adding an entity attribute the attribute compartment in the entity box is made taller than needed (a blank line appears below the new attribute.)
Created attachment 13947 [details] Fix for the problem m_List apparently holds the associations in addition to the attributes, and it seems that it holds even more, resulting in the minimum size reported by the EntityWidget having far too much height. This patch filters out the attributes and counts those for the calculation of the height. If the patch is correct I'm happy to commit to 3.5 branch.
> If the patch is correct I'm happy to commit to 3.5 branch. Looks fine to me, go right ahead!
SVN commit 489110 by mkretz: BUG: 117990 This fixes entity widgets being too high. M +2 -1 entity.cpp --- branches/KDE/3.5/kdesdk/umbrello/umbrello/entity.cpp #489109:489110 @@ -167,7 +167,8 @@ } int UMLEntity::entityAttributes() { - return m_List.count(); + UMLClassifierListItemList entityAttributes = getFilteredList(Uml::ot_EntityAttribute); + return entityAttributes.count(); }