Slicer: 1683-launcher-with-output 132bb20a

Author Committer Branch Timestamp Parent
jcfr jcfr 1683-launcher-with-output 2012-10-18 20:21:07 1683-launcher-with-output 5fd34f4d
Affected Issues 0002496: Ruler is not usable in CompareViews
Changeset

BUG: Ensure ruler widget is properly created when switching to compare view

In the case of the annotation displayable manager, calling "SetMRMLScene"
ended up calling OnMRMLSceneClose -> RequestRender -> UpdateFromMRML -> CreateWidget.
Then, since MRMLDisplayableNode wasn't set, code expecting it to be set
wasn't behaving as expected. (ie Is2DDisplayableManager was returning false)

Since the call to "vtkSetAndObserveMRMLNodeEventsMacro" was no impact
beyond the current class, switching the call "vtkSetAndObserveMRMLNodeEventsMacro"
and "SetMRMLScene" will have no unexpected impact on subclass or code
depending on the displayable manager.

See http://www.na-mic.org/Bug/view.php?id=2496

Fixes 0002496

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

mod - Libs/MRML/DisplayableManager/vtkMRMLAbstractDisplayableManager.cxx Diff File