Detach revert footprint copy from parent board.
Fixes https://gitlab.com/kicad/code/kicad/issues/13537
This commit is contained in:
parent
744fd3a71e
commit
0328cae94c
|
@ -509,6 +509,7 @@ void FOOTPRINT_EDIT_FRAME::restoreLastFootprint()
|
|||
void FOOTPRINT_EDIT_FRAME::AddFootprintToBoard( FOOTPRINT* aFootprint )
|
||||
{
|
||||
m_originalFootprintCopy.reset( static_cast<FOOTPRINT*>( aFootprint->Clone() ) );
|
||||
m_originalFootprintCopy->SetParent( nullptr );
|
||||
|
||||
m_footprintNameWhenLoaded = aFootprint->GetFPID().GetLibItemName();
|
||||
|
||||
|
|
Loading…
Reference in New Issue