Bug 338595 - Layout goes haywire if Changing Association Type via Properties on Class Diagram
Summary: Layout goes haywire if Changing Association Type via Properties on Class Diagram
Status: CLOSED WORKSFORME
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 2.11.5
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-27 11:00 UTC by Emma Atkinson
Modified: 2014-08-28 15:27 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Example (77.45 KB, application/x-uml)
2014-08-28 14:28 UTC, Emma Atkinson
Details
attachment 88475 with association between A and C selected (13.22 KB, image/png)
2014-08-28 15:11 UTC, Oliver Kellogg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emma Atkinson 2014-08-27 11:00:44 UTC
I have a class with a mixture of aggregations and composition associations to other classes. I tried changing one association from aggregation to composition using a RMB > Properties and changing the Association Type.  Firstly, I can only change one association this way.  Selecting another seems to confuse the program. If I try to select another association using the mouse and move it or a label a midpoint shoots off down the page making the diagram huge. Any further fiddling cause the diagram layout to go haywire.  Quitting and restarting recovers the class diagram.

The work-around is to delete and create a new association of the required type.
Comment 1 Oliver Kellogg 2014-08-27 20:16:43 UTC
(In reply to Emma Atkinson from comment #0)
> I have a class with a mixture of aggregations and composition associations
> to other classes. I tried changing one association from aggregation to
> composition using a RMB > Properties and changing the Association Type. 
> Firstly, I can only change one association this way.  Selecting another
> seems to confuse the program.

Are you talking about multi selection? I.e. LMB on one association, then press <Shift> together with LMB on a further association, and then RMB > Properties? If yes, that is not supported for the Properties window.

> If I try to select another association using
> the mouse and move it or a label a midpoint shoots off down the page making
> the diagram huge. Any further fiddling cause the diagram layout to go
> haywire.  Quitting and restarting recovers the class diagram.

Cannot reproduce using current Umbrello (2.13 and 2.14.)
However, I do recall having seen such problems with previous versions.

At any rate, could you attach a reproducer and the exact steps to get the problems? (Just to double check they've been fixed with current versions)
Comment 2 Emma Atkinson 2014-08-28 14:17:26 UTC
I too have been unable to reproduce the problem today in a simple example.  

I have also changed the diagram significantly on the primary work that exhibited the problem reliably yesterday.  It was repeatable through program restart.  Subsequently, I changed the class structure and removed the problem associations.  

I cannot reproduce the problem today.  As far as I can tell it's working well! I suggest we close this bug report. 

With regards to your first question on multi-selection, I had not selected multiple objects before trying to change the association. The sequence of events were as follows: Firstly, I changed one association apparently successfully.  Then I tried to change another association for the original class and another aggregated class. During the course of altering the association Type it appeared to have the last edited values and when I closed the dialogue box it had multiply selected a different association, showing as blue dots.  It was truly odd behaviour and repeatable.
Comment 3 Emma Atkinson 2014-08-28 14:28:32 UTC
Created attachment 88475 [details]
Example

In this example, I could not select the association between A and C using the RMB.  It actually selected the association between Z and C
Comment 4 Oliver Kellogg 2014-08-28 15:11:17 UTC
Created attachment 88476 [details]
attachment 88475 [details] with association between A and C selected
Comment 5 Oliver Kellogg 2014-08-28 15:13:47 UTC
(In reply to Emma Atkinson from comment #3)
> Created attachment 88475 [details]
> Example
> 
> In this example, I could not select the association between A and C using
> the RMB.  It actually selected the association between Z and C

I just tried it and didn't see the problem using git master (see attachment 88476 [details])
Comment 6 Emma Atkinson 2014-08-28 15:27:19 UTC
I'll wait for OpenSUSE to refresh Umbrello in their repositories. Thanks Oliver.