Import 2017-06-07 23:51:09: master 6b715e9c

Author Committer Branch Timestamp Parent
jcfr jcfr master 2014-12-20 22:11:08 master 2330cb00
Changeset

BUG: Fixed crash on scene close

Node pointers in the scene model can become invalid when the scene is closed.
If the node is looked up by node ID and pointer is retrieved from the scene then the retrieved pointer will always be valid.
The d->MRMLScene->GetNodeByID() lookup takes some extra time, but it is not very slow, because it just finds a string in a std::map<string,...>.

From: Andras Lasso <lasso@queensu.ca>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23840 3bd1e089-480b-0410-8dfb-8563597acbee

mod - Libs/MRML/Widgets/qMRMLSceneModel.cxx Diff File