Bug 195803

Summary: Incompatibility in copy&paste of class diagrams
Product: [Applications] umbrello Reporter: LukasT <lukast.dev>
Component: generalAssignee: Joris Steyn <kde>
Status: RESOLVED FIXED    
Severity: normal CC: ralf.habacker, ralf.habacker
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Unspecified   
Latest Commit: Version Fixed In: 4.12.0

Description LukasT 2009-06-09 18:10:51 UTC
Version:            (using KDE 4.2.3)
Installed from:    Fedora RPMs

Steps to reproduce:
1. Load xmi file with class diagram from Umbrello KDE3 into Umbrello KDE4
2. Copy the diagram  in canvas
3. Paste the diagram into another instance of the Umbrello KDE4
4. Class name is LOST_ZfqS7kCUVvtl and is empty
Comment 1 Ralf Habacker 2012-01-16 17:42:59 UTC
This bug may be related to bug 279788
Comment 2 Joris Steyn 2013-11-10 19:20:34 UTC
Git commit 1bfad17b6e6891a316ea56ac906980175ae5a058 by Joris Steyn.
Committed on 13/10/2013 at 15:09.
Pushed by jorissteyn into branch 'master'.

Fix copy/paste between Umbrello instances

Clip4 now contains all the UMLObjects corresponding to the copied widgets.

Some related but obviously unused code removed. Involves a better fix than
c63e77c for broken copy/paste of listview items.
Related: bug 70926, bug 279788, bug 291749, bug 128068

M  +7    -48   umbrello/clipboard/umlclipboard.cpp
M  +18   -14   umbrello/clipboard/umldragdata.cpp
M  +6    -0    umbrello/uml.cpp
M  +0    -111  umbrello/umllistview.cpp
M  +0    -5    umbrello/umllistview.h
M  +1    -2    umbrello/umlobject.cpp

http://commits.kde.org/umbrello/1bfad17b6e6891a316ea56ac906980175ae5a058
Comment 3 Ralf Habacker 2013-11-10 23:40:53 UTC
Git commit 9b2d14372905fc49076025488983fb5859637eba by Ralf Habacker, on behalf of Joris Steyn.
Committed on 13/10/2013 at 15:09.
Pushed by habacker into branch 'KDE/4.12'.

Fix copy/paste between Umbrello instances

Clip4 now contains all the UMLObjects corresponding to the copied widgets.

Some related but obviously unused code removed. Involves a better fix than
c63e77c for broken copy/paste of listview items.
Related: bug 70926, bug 279788, bug 291749, bug 128068

M  +7    -48   umbrello/clipboard/umlclipboard.cpp
M  +18   -14   umbrello/clipboard/umldragdata.cpp
M  +6    -0    umbrello/uml.cpp
M  +0    -111  umbrello/umllistview.cpp
M  +0    -5    umbrello/umllistview.h
M  +1    -2    umbrello/umlobject.cpp

http://commits.kde.org/umbrello/9b2d14372905fc49076025488983fb5859637eba
Comment 4 Joris Steyn 2013-11-12 16:53:48 UTC
Git commit d9683d52f0ce96b61fd244c4812b8a31a9f236bc by Joris Steyn.
Committed on 12/11/2013 at 16:30.
Pushed by jorissteyn into branch 'master'.

Fix crash loading XMI

Do assign parent when loading XMI. Commit 1bfad17 regressed the loading of (for
example) RefactoringAssistant.xmi. This fix makes loadFromXmi() only determine
a new parent when pasting (so, when not loading a file) like it was before.
Related: bug 70926, bug 279788

M  +7    -1    umbrello/umlobject.cpp

http://commits.kde.org/umbrello/d9683d52f0ce96b61fd244c4812b8a31a9f236bc
Comment 5 Ralf Habacker 2013-11-12 17:02:39 UTC
Git commit b1be6d458982bb8e6df824055e2eeccc018e3141 by Ralf Habacker, on behalf of Joris Steyn.
Committed on 12/11/2013 at 16:30.
Pushed by habacker into branch 'KDE/4.12'.

Fix crash loading XMI

Do assign parent when loading XMI. Commit 1bfad17 regressed the loading of (for
example) RefactoringAssistant.xmi. This fix makes loadFromXmi() only determine
a new parent when pasting (so, when not loading a file) like it was before.
Related: bug 70926, bug 279788

M  +7    -1    umbrello/umlobject.cpp

http://commits.kde.org/umbrello/b1be6d458982bb8e6df824055e2eeccc018e3141