Formatting.
This commit is contained in:
parent
2c21ef1ed0
commit
491adc6c6c
|
@ -285,9 +285,9 @@ void PCB_BASE_EDIT_FRAME::PutDataInPreviousState( PICKED_ITEMS_LIST* aList )
|
|||
{
|
||||
// First time we've seen this item - tag the current change type
|
||||
item_changes.insert( { item, change_type } );
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
// Update the item state based on the current and next change type
|
||||
switch( item_itr->second )
|
||||
{
|
||||
|
@ -302,7 +302,7 @@ void PCB_BASE_EDIT_FRAME::PutDataInPreviousState( PICKED_ITEMS_LIST* aList )
|
|||
else if( change_type == ITEM_CHANGE_TYPE::ADDED )
|
||||
{
|
||||
// Error condition - added an already added item
|
||||
wxASSERT_MSG( false, wxT( "Undo / Redo - should not add already added item" ) );
|
||||
wxASSERT_MSG( false, wxT( "UndoRedo: should not add already added item" ) );
|
||||
}
|
||||
|
||||
// For all other cases, the item remains as ADDED as seen by the bulk callbacks
|
||||
|
@ -312,7 +312,7 @@ void PCB_BASE_EDIT_FRAME::PutDataInPreviousState( PICKED_ITEMS_LIST* aList )
|
|||
{
|
||||
// This is an error condition - item has already been deleted so should not
|
||||
// be operated on further
|
||||
wxASSERT_MSG( false, wxT( "Undo / Redo - should not alter already deleted item" ) );
|
||||
wxASSERT_MSG( false, wxT( "UndoRedo: should not alter already deleted item" ) );
|
||||
break;
|
||||
}
|
||||
case ITEM_CHANGE_TYPE::CHANGED:
|
||||
|
@ -326,14 +326,13 @@ void PCB_BASE_EDIT_FRAME::PutDataInPreviousState( PICKED_ITEMS_LIST* aList )
|
|||
// This is an error condition - item has already been changed so should not
|
||||
// be added
|
||||
wxASSERT_MSG( false,
|
||||
wxT( "Undo / Redo - should not add already changed item" ) );
|
||||
wxT( "UndoRedo: should not add already changed item" ) );
|
||||
}
|
||||
|
||||
// Otherwise, item remains CHANGED
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// Undo in the reverse order of list creation: (this can allow stacked changes
|
||||
|
|
Loading…
Reference in New Issue