Version: 1.1.1 (using KDE Devel) Installed from: Compiled sources Compiler: gcc 2.95.3 OS: Linux Sebastian Stein wrote: > I think you forgot to mention another thing. Line position isn't saved and > you have to reorder them after each load. I allready tried to improve the > code, but I think it is impossible. Because at the moment the line decides Carsten Pfeiffer wrote: No, actually, it is saved (look at the XMI). I investigated this a while ago and IIRC the problem was: - - an AssociationWidgetData object is created - - it creates a LinePath object - - loadFromXMI() is called on it, which also calls loadFromXMI on the LinePath object - - an AssociationWidget object is created with the AWD object as parameter - - the AW sets itself as as association object in the AWD's LinePath object, which makes the LinePath object throw away all its state loaded via loadFromXMI(), so the defaults are calculated. Possible solutions: - - add another parameter to setAssociation to tell the LinePath to or not to throw away its state. - - call loadFromXMI() after the AssociationWidget object is created and setAssociation() is called (not sure if this is feasible).
I'm not sure I understand this. Perhaps you could create an attachment that shows the problem?
Subject: Re: [Uml-devel] load associations correctly linepath Oliver Kellogg <okellogg@users.sourceforge.net> [031130 09:50]: > I'm not sure I understand this. > Perhaps you could create an attachment that shows the problem? Create a class diagram with 2 classes and connect them with 2 associations. Now save the file. If you load the file it could happen, that the associations cross, because Umbrello reorders the association connection points automatically on load. This has to be disabled, because the correct connection point is saved in the xmi file. Steinchen
Subject: Re: load associations correctly linepath
*** Bug has been marked as fixed ***.