Detach revert footprint copy from parent board.

Fixes https://gitlab.com/kicad/code/kicad/issues/13537
This commit is contained in:
Jeff Young 2023-01-14 22:37:30 +00:00
parent 744fd3a71e
commit 0328cae94c
1 changed files with 1 additions and 0 deletions

View File

@ -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();