diff --git a/eeschema/dialogs/dialog_annotate.cpp b/eeschema/dialogs/dialog_annotate.cpp index b4f0576ddd..295a683087 100644 --- a/eeschema/dialogs/dialog_annotate.cpp +++ b/eeschema/dialogs/dialog_annotate.cpp @@ -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; }