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