From e64c36af6e3e87820919d2be0bda51ef0e333b35 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh <stambaughw@verizon.net> Date: Sat, 31 Oct 2015 12:25:52 -0400 Subject: [PATCH] Eeschema: set modified flag when clearing annotation. --- eeschema/annotate.cpp | 2 ++ eeschema/dialogs/dialog_annotate.cpp | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/annotate.cpp b/eeschema/annotate.cpp index cb47703409..32db056160 100644 --- a/eeschema/annotate.cpp +++ b/eeschema/annotate.cpp @@ -56,6 +56,8 @@ void SCH_EDIT_FRAME::DeleteAnnotation( bool aCurrentSheetOnly ) // Update the references for the sheet that is currently being displayed. m_CurrentSheet->UpdateAllScreenReferences(); + GetCanvas()->Refresh(); + OnModify(); } diff --git a/eeschema/dialogs/dialog_annotate.cpp b/eeschema/dialogs/dialog_annotate.cpp index 9b987bd362..5c8b002b99 100644 --- a/eeschema/dialogs/dialog_annotate.cpp +++ b/eeschema/dialogs/dialog_annotate.cpp @@ -256,8 +256,6 @@ void DIALOG_ANNOTATE::OnClearAnnotationCmpClick( wxCommandEvent& event ) return; m_Parent->DeleteAnnotation( GetLevel() ? false : true ); - m_Parent->GetCanvas()->Refresh(); - m_btnClear->Enable( false ); }