Eeschema: set modified flag when clearing annotation.

This commit is contained in:
Wayne Stambaugh 2015-10-31 12:25:52 -04:00
parent c94a5dd46f
commit e64c36af6e
2 changed files with 2 additions and 2 deletions

View File

@ -56,6 +56,8 @@ void SCH_EDIT_FRAME::DeleteAnnotation( bool aCurrentSheetOnly )
// Update the references for the sheet that is currently being displayed. // Update the references for the sheet that is currently being displayed.
m_CurrentSheet->UpdateAllScreenReferences(); m_CurrentSheet->UpdateAllScreenReferences();
GetCanvas()->Refresh();
OnModify();
} }

View File

@ -256,8 +256,6 @@ void DIALOG_ANNOTATE::OnClearAnnotationCmpClick( wxCommandEvent& event )
return; return;
m_Parent->DeleteAnnotation( GetLevel() ? false : true ); m_Parent->DeleteAnnotation( GetLevel() ? false : true );
m_Parent->GetCanvas()->Refresh();
m_btnClear->Enable( false ); m_btnClear->Enable( false );
} }