Import 2017-06-07 23:51:09: master a0a5d292

Author Committer Branch Timestamp Parent
lassoan lassoan master 2016-11-09 12:00:28 master 0087852d
Changeset

BUG: Fixed crash when setting active markups to NULL

How to reproduce:
slicer.modules.markups.logic().SetActiveListID(None) => crash

Solution:
If active list in markups module is set to none then:

  1. If markups placement class was selected: then deactivate placement and reset active markups node ID
  2. If non-markups placement class was selected (ROI, Ruler) then don't do anything

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

mod - Modules/Loadable/Markups/Logic/vtkSlicerMarkupsLogic.cxx Diff File