GNOME Bugzilla – Bug 342902
UML Class object duplication reverses order of attributes and operations
Last modified: 2006-08-07 21:47:06 UTC
Please describe the problem: When duplicating a UML Class object using the "Duplicate" function from the "Edit" dropdown menu or the CTRL+D shortcut the object is duplicated but the order of the attributes and operations are reversed for the duplicated object. Steps to reproduce: 1.Create a UML class object on the worksheet. 2. Add a few attributes and operations to the class. 3. Select and duplicate the object by using CTRL+D. 4. Note that the order in which the attributes and also the operations of the class is displayed has been reversed for the duplicated object. Actual results: The order in which the attributes and also the operations of the class is displayed has been reversed for the duplicated object. Expected results: An exact copy of the original object. Does this happen every time? Yes Other information:
Thanks for the report, fixed in cvs: 2006-06-15 Hans Breuer <hans@breuer.org> * objects/UML/class.c : use g_list_append() rather than prepend when copying attributes, operations, formalparams. Fixes bug #342902 Also removed some superfluous outcommented code and fixed a warning.
*** Bug 350272 has been marked as a duplicate of this bug. ***