B2025-030 Show Cannot restore wording if restoring Annotation with a deleted annotation type. #549
| @@ -897,11 +897,7 @@ namespace Volian.Controls.Library | ||||
| 					// B2023-072: Don't crash if annotation type was deleted for the restore annotation | ||||
| 					if (ai == null) | ||||
| 					{ | ||||
| 						AnnotationTypeInfo ati = AnnotationTypeInfo.Get(aai.TypeID); | ||||
| 						if (ati == null) | ||||
| 						{ | ||||
| 							FlexibleMessageBox.Show(this, "Annotation Type was deleted, cannot restore Annotation Type\r\nCopy text from window in Change Details and paste into new annotation to restore the text.", "Annotation Type Deleted", MessageBoxButtons.OK, MessageBoxIcon.Warning); | ||||
| 						} | ||||
| 						FlexibleMessageBox.Show(this, "Annotation Type was deleted, cannot restore Annotation Type\r\nCopy text from window in Change Details and paste into new annotation to restore the text.", "Annotation Type Deleted", MessageBoxButtons.OK, MessageBoxIcon.Warning); | ||||
| 						return; | ||||
| 					} | ||||
| 					OnAnnotationRestored(ai, ai.MyItem); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user