Fix error in WidgetAnnotation
Merge pull request #5418 from Rob--W/issue-5417-annot-error

Fix error in WidgetAnnotation