Bug 158647 - changes on "entitätattribut" changes the attributes also on an copy
Summary: changes on "entitätattribut" changes the attributes also on an copy
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-01 22:29 UTC by sts
Modified: 2018-10-08 23:57 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 2.26.2 (KDE Applications 18.08.2)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sts 2008-03-01 22:29:04 UTC
Version:           2.0.0 (using 4.00.64 (KDE 4.0.64 >= 20080228) "release 2.1", compiled sources)
Compiler:          gcc
OS:                Linux (i686) release 2.6.22.17-0.1-default

If I copy a "Entität" an make changes on it. It changes the attributes also on my original "Entität" element
Comment 1 Dario Andres 2008-12-21 14:26:07 UTC
Can anyone still reproduce this bug with a recent KDE version? (4.1.3 / 4.2beta2 / 4.2svn) ?  Thanks :) 
Comment 2 sts 2009-01-14 23:42:43 UTC
Yes, I can reproduce it with 4.2rc1
Comment 3 sts 2009-12-22 21:13:17 UTC
and still exist in umbrello 4.3.85
Comment 4 Ralf Habacker 2018-10-05 23:16:09 UTC
bug ist still present in 2.26.0 (KDE Applications 18.08.0)
Comment 5 Ralf Habacker 2018-10-06 15:06:24 UTC
The problem is UMLDragData::decodeClip4: When pasting, the current implementation creates only one copy of the widget, but uses the underlying UML object from the copied widget instead of creating a copy.
Comment 6 Ralf Habacker 2018-10-07 09:10:10 UTC
Git commit 36e8d4cabefd722ccccd3556168d0c629b3b8c13 by Ralf Habacker.
Committed on 07/10/2018 at 09:09.
Pushed by habacker into branch 'Applications/18.08'.

Refactored UMLDragData::decodeClip4() to use better variable names

M  +7    -5    umbrello/clipboard/umldragdata.cpp

https://commits.kde.org/umbrello/36e8d4cabefd722ccccd3556168d0c629b3b8c13
Comment 7 Ralf Habacker 2018-10-07 09:10:14 UTC
Git commit 52c92044191f291a8503dd2c618381b80e010d92 by Ralf Habacker.
Committed on 07/10/2018 at 09:09.
Pushed by habacker into branch 'Applications/18.08'.

Fix 'changes on "entitätattribut" changes the attributes also on an copy'

We need to clone the related uml object too.
FIXED-IN:2.26.3 (KDE Applications 18.08.3)

M  +14   -0    umbrello/clipboard/umldragdata.cpp
M  +26   -0    umbrello/model_utils.cpp
M  +1    -0    umbrello/model_utils.h
M  +7    -22   umbrello/umlscene.cpp

https://commits.kde.org/umbrello/52c92044191f291a8503dd2c618381b80e010d92