Fixed logic to properly find RO Tokens in text.

Fixed logic when searching for annotations so that the results can be selected.
This commit is contained in:
Rich
2013-11-27 15:43:53 +00:00
parent eee8ac291f
commit 6ae55e3780
2 changed files with 7 additions and 4 deletions

View File

@@ -211,7 +211,7 @@ namespace Volian.Controls.Library
AnnotationDirty = false;
if (!_LoadingGrid)
rtxbComment.Focus(); // Set the focus to the comment text
if (MyUserInfo.IsReviewer(_CurrentItem.MyDocVersion) && CurrentAnnotation != null && CurrentAnnotation.UserID != MyUserInfo.UserID)
if (CurrentAnnotation != null && MyUserInfo.IsReviewer(CurrentAnnotation.MyItem.MyDocVersion ) && CurrentAnnotation.UserID != MyUserInfo.UserID)
{
btnRemoveAnnotation.Enabled = false;
cbGridAnnoType.Enabled = false;