eeschema: Fix return ID check in annotate dialog

Fixes https://gitlab.com/kicad/code/kicad/issues/3708
This commit is contained in:
Ian McInerney 2019-12-25 23:15:52 +00:00
parent 2ea565473f
commit e6e2cf47fd
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ void DIALOG_ANNOTATE::OnApplyClick( wxCommandEvent& event )
dlg.SetOKLabel( _( "Clear and Annotate" ) );
dlg.DoNotShowCheckbox( __FILE__, __LINE__ );
if( dlg.ShowModal() == wxCANCEL )
if( dlg.ShowModal() == wxID_CANCEL )
return;
}