Include symbol flags in swap

Needed for undo/redo.  All properties should be listed in the swap

Fixes https://gitlab.com/kicad/code/kicad/issues/13409
This commit is contained in:
Seth Hillbrand 2023-01-06 14:40:00 -08:00
parent 2f7f41b090
commit 03e12535a8
1 changed files with 4 additions and 0 deletions

View File

@ -1082,6 +1082,10 @@ void SCH_SYMBOL::SwapData( SCH_ITEM* aItem )
m_transform = symbol->m_transform;
symbol->m_transform = tmp;
std::swap( m_inBom, symbol->m_inBom );
std::swap( m_DNP, symbol->m_DNP );
std::swap( m_onBoard, symbol->m_onBoard );
std::swap( m_instanceReferences, symbol->m_instanceReferences );
std::swap( m_schLibSymbolName, symbol->m_schLibSymbolName );
}