[umbrello-devel] [umbrello] [Bug 345571] Crash when copying actor of use case to collaboration diagram

Ralf Habacker ralf.habacker at freenet.de
Wed May 6 06:09:27 UTC 2015


https://bugs.kde.org/show_bug.cgi?id=345571

--- Comment #2 from Ralf Habacker <ralf.habacker at freenet.de> ---
Pasting code is performed by the following methods: 
0    UMLClipboard::checkPasteWidgets    umlclipboard.cpp    771    0x49ed60    
1    UMLClipboard::pasteClip4    umlclipboard.cpp    529    0x4a0074    
2    UMLClipboard::paste    umlclipboard.cpp    211    0x4a101b    
3    UMLApp::slotEditPaste    uml.cpp    1566    0x63e851    

The problem here is, that UMLClipboard::checkPasteWidgets() deletes the widget,
while UMLDragData::decodeClip4(), which is called from pasteClip4(), already
added the widget to the scene widget list. Accessing afterwards the scene's
widget list returns a dangled widget pointer and result into the crash.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the umbrello-devel mailing list