From 79954657e2cfc760a0807fdf033a4a4268801abc 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 (cherry-picked from e6e2cf47fdebdf458b31077b3359b2f1b52bda72) --- 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 873199fe53..8e941bd53e 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; }