← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH 2/2] Fix undo/redo invocation

 

This patch is no longer valid.

On 1/25/2015 4:25 PM, Simon Richter wrote:
> This function takes an UR_* flag to denote the operation, not an item
> status. As these constants have the same value, this doesn't change
> generated code.
> ---
>  eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp b/eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp
> index d42752e..bcd7f5e 100644
> --- a/eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp
> +++ b/eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp
> @@ -266,7 +266,7 @@ void DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::OnOKButtonClick( wxCommandEvent& event
>      /* End unused code */
>  
>      // save old cmp in undo list
> -    m_parent->SaveCopyInUndoList( m_libEntry, IS_CHANGED );
> +    m_parent->SaveCopyInUndoList( m_libEntry, UR_CHANGED );
>  
>      // delete any fields with no name or no value before we copy all of m_FieldsBuf
>      // back into the component
> 



References