Fix error when pressing F1 during image editing

The proper condition should've been
    if(form.IsAnnotationMode && !form.IsEditorMode)
but I guess checking for null is more robust here
This commit is contained in:
L1Q 2017-10-05 05:57:36 +03:00
parent 644f503fce
commit 3841eacd2a

View file

@ -411,7 +411,7 @@ private void form_KeyDown(object sender, KeyEventArgs e)
break;
case Keys.F1:
Config.ShowHotkeys = !Config.ShowHotkeys;
if(form.IsAnnotationMode)
if(tsmiTips != null)
tsmiTips.Checked = Config.ShowHotkeys;
break;
}