SetLastEditTime() upon creating UR_CHANGED entry in undo buffer.

This commit is contained in:
Maciej Suminski 2016-06-07 16:55:56 +02:00
parent 0bf553b06c
commit c78faec247
1 changed files with 4 additions and 1 deletions

View File

@ -217,7 +217,8 @@ void PCB_BASE_EDIT_FRAME::SaveCopyInUndoList( const PICKED_ITEMS_LIST& aItemsLis
if( !found )
{
// Create a clean copy of the parent module
MODULE* clone = new MODULE( *static_cast<MODULE*>( item ) );
MODULE* orig = static_cast<MODULE*>( item );
MODULE* clone = new MODULE( *orig );
clone->SetParent( GetBoard() );
// Clear current flags (which can be temporary set by a current edit command)
@ -233,6 +234,8 @@ void PCB_BASE_EDIT_FRAME::SaveCopyInUndoList( const PICKED_ITEMS_LIST& aItemsLis
ITEM_PICKER picker( item, UR_CHANGED );
picker.SetLink( clone );
commandToUndo->PushItem( picker );
orig->SetLastEditTime();
}
else
{