Import 2017-06-07 23:51:09: master 5963e8b1

Author Committer Branch Timestamp Parent
jcfr jcfr master 2014-06-30 02:53:04 master 508f4321
Affected Issues 0003708: vtkSlicerUnitsLogicTest1 is failing
Changeset

BUG: Restore original behavior of "Set(AndObserve)NthNodeReference" functions

This commit fixes test vtkSlicerUnitsLogicTest1 by partially reverting
commit r23192.

It restores the original behavior of the "Set(AndObserve)NthNodeReference"
functions. Instead of ensuring reference can be set and get at position
n, if n is larger than the number of reference nodes, the node ID
is added at the end of the list. If nodeReferenceID is 0, the node ID is
removed from the list.

Fixes 0003708

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

mod - Libs/MRML/Core/Testing/vtkMRMLNodeTest1.cxx Diff File
mod - Libs/MRML/Core/vtkMRMLNode.cxx Diff File
mod - Libs/MRML/Core/vtkMRMLNode.h Diff File