Skip to content

Commit 19deac8

Browse files
authored
Fix LT-22290: Crash on deleting disapproved wordform analysis (#473)
1 parent bdf87b4 commit 19deac8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Src/LexText/Morphology/MorphologyListener.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ public virtual bool OnDisplayAnalysisApprove(object commandObject,
790790
ref UIItemDisplayProperties display)
791791
{
792792
display.Enabled = display.Visible = InFriendlyArea;
793-
display.Checked = Analysis != null && Analysis.ApprovalStatusIcon == 1;
793+
display.Checked = Analysis != null && Analysis.IsValidObject && Analysis.ApprovalStatusIcon == 1;
794794
return true; //we've handled this
795795
}
796796

0 commit comments

Comments
 (0)