Fix null exception

This commit is contained in:
Jaex 2017-12-25 10:20:21 +03:00
parent 8089aab59c
commit 79fcdf9325

View file

@ -1225,7 +1225,10 @@ private void UpdateMenu()
tsmiArrowHeadsBothSide.Checked = AnnotationOptions.ArrowHeadsBothSide;
tsbSaveImage.Enabled = !string.IsNullOrEmpty(Form.ImageFilePath) && File.Exists(Form.ImageFilePath);
if (tsbSaveImage != null)
{
tsbSaveImage.Enabled = !string.IsNullOrEmpty(Form.ImageFilePath) && File.Exists(Form.ImageFilePath);
}
switch (shapeType)
{