When pasting a diagram to another instance of Umbrello, the list item and all objects that have widgets on the diagram are added to the other instance. Everything seems to works fine except: a crash occurs when moving the pasted diagram. Saving and reloading the file fixes the issue.
Steps to Reproduce:
1. Add widgets to a diagram
2. Copy the diagram
3. Paste the diagram to another Umbrello instance
4. Move the pasted diagram
*** This bug has been marked as a duplicate of bug 327834 ***
This issue is distinct from bug 327834, it happens when pasting a diagram listview item. The new item points to the wrong (old) diagram resulting in problems on first interaction with the item.
Do you have a testcase ? I tried to reproduce with the huge test case from bug 327834, but the crash did not happens, which guided me to the resolved conclusion
Git commit bbb9b085a734eefb0ad5ca4265d25fb0e32e6d9e by Joris Steyn.
Committed on 19/11/2013 at 21:31.
Pushed by jorissteyn into branch 'master'.
Fix crash when moving diagram after paste
This also makes the behaviour of the (still partly broken) diagram duplication
a bit more acceptable/usable untill bug 327670 has been resolved.
M +10 -2 umbrello/umldoc.cpp
OK see above commit. This is the issue I intended to fix in this issue, reproducible in 4.12 with these steps:
1. Start Umbrello
2. Add one or more widgets to the class diagram
3. Select the list view item of the class diagram in the tree view
5. File -> New / New Umbrello instance
6. Select "Logical View" in the tree
7. CTRL+V (so far so good)
8. Try to move the new diagram item to another location in the tree
Step 8. resulted in a crash. That should be fixed now in master. But, there's definately more work here so I created bug 327910.