Import 2017-06-07 23:51:09: master 64e87432

Author Committer Branch Timestamp Parent
naucoin naucoin master 2014-10-29 17:49:07 master db323912
Affected Issues 0003879: Trying to edit snapshots created by scripted extension wizard crash Slicer
Changeset

BUG: fix crash when editing scripted screen shots

Fixed the default screen shot type to use the defined full layout
integer.
Added checks to avoid crashes for scripts that are in extensions.

The default screen shot type was set to -1 in the python scripts
and templates, but in the Qt widget, the screen shot type was
only defined from 0-4. Trying to open the scripted screen shot
node in the Qt widget would cause a crash since the -1 type was
cast to the enumerated WidgetType in qMRMLScreenShotDialog
resulting in an invalid number and a null widget.

Issue 0003879

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

mod - Applications/SlicerApp/Testing/Python/FiducialLayoutSwitchBug1914.py Diff File
mod - Applications/SlicerApp/Testing/Python/RSNAQuantTutorial.py Diff File
mod - Applications/SlicerApp/Testing/Python/RSNAVisTutorial.py Diff File
mod - Extensions/Testing/ScriptedLoadableExtensionTemplate/ScriptedLoadableModuleTemplate/ScriptedLoadableModuleTemplate.py Diff File
mod - Libs/MRML/Widgets/qMRMLScreenShotDialog.cxx Diff File
mod - Modules/Loadable/Annotations/GUI/qSlicerAnnotationModuleSnapShotDialog.cxx Diff File
mod - Modules/Loadable/Annotations/Logic/vtkSlicerAnnotationModuleLogic.cxx Diff File
mod - Modules/Loadable/Markups/Testing/Python/NeurosurgicalPlanningTutorialMarkupsSelfTest.py Diff File
mod - Utilities/Templates/Modules/Scripted/TemplateKey.py Diff File