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

Author Committer Branch Timestamp Parent
jcfr jcfr master 2014-10-29 00:15:12 master e50a7ef9
Changeset

ENH: Fixed error message occurring after disabling SliceViewAnnotations

This commit fixes error message like this one:

Traceback (most recent call last):
File "/path/to/Slicer-build/lib/Slicer-4.3/qt-scripted-modules/DataProbeLib/SliceViewAnnotations.py", line 596, in updateCornerAnnotations
self.makeAnnotationText(caller)
File "/path/to/Slicer-build/lib/Slicer-4.3/qt-scripted-modules/DataProbeLib/SliceViewAnnotations.py", line 838, in makeAnnotationText
self.drawCornerAnnotations()
File "/path/to/Slicer-build/lib/Slicer-4.3/qt-scripted-modules/DataProbeLib/SliceViewAnnotations.py", line 993, in drawCornerAnnotations
sliceCornerAnnotation = self.sliceCornerAnnotations[self.currentSliceViewName]
KeyError: 'Red'

From: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>

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

mod - Modules/Scripted/DataProbe/DataProbeLib/SliceViewAnnotations.py Diff File