Bug 416006 - No association update after changing a class attribute type from class to class pointer or address and vice versa
Summary: No association update after changing a class attribute type from class to cla...
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 2.30.0 (KDE Applications 19.12.0)
Platform: Other All
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-08 16:01 UTC by Ralf Habacker
Modified: 2020-01-08 16:37 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 2.30.2 (KDE Applications 19.12.2)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Habacker 2020-01-08 16:01:13 UTC
STEPS TO REPRODUCE
1. start umbrello
2. add two classes a and b
3. select composition in toolbar and connect from class a to class b
4. In the tree view change type of the newly created attribute from 'b' to 'b*' and save

OBSERVED RESULT
The visual representation of the association is still of type composition


EXPECTED RESULT
The visual representation of the association should show an aggregation

SOFTWARE/OS VERSIONS
Linux: openSUSE Leap 15.1
KDE Frameworks Version: 5.59.0
Qt Version: 5.9.7

ADDITIONAL INFORMATION
Removing class b from the diagram and then adding it again indicates the correct association
Comment 1 Ralf Habacker 2020-01-08 16:37:28 UTC
Git commit 5f681444044aa0e3ff175d0684a05575be21e04f by Ralf Habacker.
Committed on 08/01/2020 at 16:37.
Pushed by habacker into branch 'release/19.12'.

Fix 'No association update after changing a class attribute type from class to class pointer or address and vice versa'

In case a corresponding association widget already exists, update
the type to fix the error.
FIXED-IN:2.30.2 (KDE Applications 19.12.2)

M  +8    -9    umbrello/umlscene.cpp

https://invent.kde.org/kde/umbrello/commit/5f681444044aa0e3ff175d0684a05575be21e04f