Fix COMMIT handler for deleting PCB_GROUPs in footprint editor.
This commit is contained in:
parent
7e974e5ccc
commit
77aa48b825
|
@ -245,10 +245,18 @@ void BOARD_COMMIT::Push( const wxString& aMessage, bool aCreateUndoEntry, bool a
|
|||
}
|
||||
break;
|
||||
|
||||
// Metadata items
|
||||
case PCB_NETINFO_T:
|
||||
case PCB_GROUP_T:
|
||||
if( !( changeFlags & CHT_DONE ) )
|
||||
{
|
||||
if( m_editModules )
|
||||
board->GetFirstModule()->Remove( boardItem );
|
||||
else
|
||||
board->Remove( boardItem );
|
||||
}
|
||||
break;
|
||||
|
||||
// Metadata items
|
||||
case PCB_NETINFO_T:
|
||||
board->Remove( boardItem );
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue