From e6e2cf47fdebdf458b31077b3359b2f1b52bda72 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Wed, 25 Dec 2019 23:15:52 +0000 Subject: [PATCH] eeschema: Fix return ID check in annotate dialog Fixes https://gitlab.com/kicad/code/kicad/issues/3708 --- eeschema/dialogs/dialog_annotate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }