Summary: | In ER models adding associations will add blank space in the entity attributes | ||
---|---|---|---|
Product: | [Applications] umbrello | Reporter: | MM <radar> |
Component: | general | Assignee: | Umbrello Development Group <umbrello-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kretz |
Priority: | NOR | ||
Version: | 1.5 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | Fix for the problem |
Description
MM
2005-12-09 12:43:43 UTC
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(); } |