After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 342902 - UML Class object duplication reverses order of attributes and operations
UML Class object duplication reverses order of attributes and operations
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: objects
0.95
Other All
: Normal minor
: 0.96
Assigned To: Dia maintainers
Dia maintainers
: 350272 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-05-25 09:44 UTC by wouter cloete
Modified: 2006-08-07 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description wouter cloete 2006-05-25 09:44:19 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:
Comment 1 Hans Breuer 2006-06-15 13:47:30 UTC
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.

Comment 2 Hans Breuer 2006-08-07 21:47:06 UTC
*** Bug 350272 has been marked as a duplicate of this bug. ***