Permalink
Browse files

BUG: Fixed crash on save mrml due to incorrect vtkMRMLDisplayableNode…

…::DisplayModifiedEvent

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21826 3bd1e089-480b-0410-8dfb-8563597acbee
  • Loading branch information...
1 parent 419a507 commit 5e6164fbb3207996794abcc3e8e8bcc79adbd500 alexy committed Mar 19, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 Libs/MRML/Core/vtkMRMLDisplayableNode.h
@@ -235,7 +235,10 @@ class VTK_MRML_EXPORT vtkMRMLDisplayableNode : public vtkMRMLStorableNode
virtual void OnNodeReferenceAdded(vtkMRMLNodeReference *reference)
{
Superclass::OnNodeReferenceAdded(reference);
- this->InvokeEvent(vtkMRMLDisplayableNode::DisplayModifiedEvent, reference->ReferencedNode);
+ if (reference->ReferenceRole == this->DISPLAY_NODE_REFERENCE_ROLE)
+ {
+ this->InvokeEvent(vtkMRMLDisplayableNode::DisplayModifiedEvent, reference->ReferencedNode);
+ }
}
///

0 comments on commit 5e6164f

Please sign in to comment.