Undo redo change and code cleanup.

This commit is contained in:
jean-pierre charras
2012-02-05 14:02:46 +01:00
parent 8e846082bb
commit 08ef741770
23 changed files with 102 additions and 125 deletions
+2 -2
View File
@@ -263,12 +263,12 @@ void SCH_EDIT_FRAME::OnConvertTextType( wxCommandEvent& aEvent )
}
// Prepare undo command for delete old text
picker.m_UndoRedoStatus = UR_DELETED;
picker.SetStatus( UR_DELETED );
picker.SetLink( NULL );
pickList.PushItem( picker );
// Prepare undo command for new text
picker.m_UndoRedoStatus = UR_NEW;
picker.SetStatus( UR_NEW );
picker.SetItem(newtext);
pickList.PushItem( picker );