Bug 78192 - Drag-n-drop uses associations incorrectly
Summary: Drag-n-drop uses associations incorrectly
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
: 78633 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-22 09:20 UTC by Zoltan Bartko
Modified: 2004-03-28 20:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zoltan Bartko 2004-03-22 09:20:27 UTC
Version:           current cvs (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.3.1 
OS:          Linux

If I drag and drop a class do a diagram that previously was not in the diagram, the associations that are dragged along with the class are not saved in the resulting file - upon opening the saved file these associations are not present. Further on, if a generalisation is dragged with the class and the class has no other associations, the direction of the generalisation is inverted. It does not happen if the class has some other association too. However, none of the dragged associations are saved in the final file. 

How to reproduce: create a diag with two classes that have a generalisation between each other and an association. Then delete the classes from the diag, drag them from the list box and watch what happens after saving and reloading. Then try the same with just the generalisation between the two classes.
Comment 1 Oliver Kellogg 2004-03-22 16:29:09 UTC
Zoltan Barko wrote:
> If I drag and drop a class do a diagram that
> previously was not in the diagram, the associations
> that are dragged along with the class are not saved
> in the resulting file [...]

I cannot reproduce this.
I assume these actions are based on a previous C++
class import, is that correct?

> Further on, if a generalisation is dragged with the
> class and the class has no other associations, the
> direction of the generalisation is inverted.

Fixed in CVS, please verify.
Comment 2 Jonathan Riddell 2004-03-27 21:53:07 UTC
Olivers commit seems to fix both problems.  Well done.
Comment 3 Jonathan Riddell 2004-03-28 20:50:55 UTC
*** Bug 78633 has been marked as a duplicate of this bug. ***