We do undo on individual footprint children now.
Adding a commit record for the parent means we replace the parent first on undo and then if a child was added we can't find it to remove it.
This commit is contained in:
parent
07cefa7883
commit
eacebe63f1
|
@ -586,12 +586,6 @@ void BOARD_COMMIT::Push( const wxString& aMessage, int aCommitFlags )
|
|||
|
||||
EDA_ITEM* BOARD_COMMIT::parentObject( EDA_ITEM* aItem ) const
|
||||
{
|
||||
if( BOARD_ITEM* boardItem = dynamic_cast<BOARD_ITEM*>( aItem ) )
|
||||
{
|
||||
if( FOOTPRINT* parentFP = boardItem->GetParentFootprint() )
|
||||
return parentFP;
|
||||
}
|
||||
|
||||
return aItem;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue