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

Author Committer Branch Timestamp Parent
pinter pinter master 2016-01-21 10:11:24 master daac6091
Changeset

BUG: Prevent clash of subject hierarchy and other hierarchies

When a model not in a model hierarchy was deleted, then the associated subject hierarchy was found (if SH was enabled, which is by default disabled) due to using the generic vtkMRMLHierarchyNode, and the model node was deleted twice, causing a crash. By downcasting to the expected hierarchy type the crash does not occur.

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

mod - Libs/MRML/Logic/vtkMRMLDisplayableHierarchyLogic.cxx Diff File
mod - Modules/Loadable/Models/qSlicerModelsModuleWidget.cxx Diff File