eeschema: Fix return ID check in annotate dialog

Fixes https://gitlab.com/kicad/code/kicad/issues/3708

(cherry-picked from e6e2cf47fd)
This commit is contained in:
Ian McInerney 2019-12-25 23:15:52 +00:00
parent 35d3f1f72a
commit 79954657e2
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;
}