PCB: respect styling settings when inserting footprint from editor

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/15155
This commit is contained in:
Mike Williams 2023-07-11 08:16:48 -04:00
parent 0bc546fa62
commit 3a7de82243
1 changed files with 3 additions and 0 deletions

View File

@ -991,6 +991,9 @@ bool FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard( bool aAddNew )
fixUuid( const_cast<KIID&>( aChild->m_Uuid ) ); fixUuid( const_cast<KIID&>( aChild->m_Uuid ) );
} ); } );
newFootprint->ApplyDefaultSettings( *m_pcb, GetPcbNewSettings()->m_StyleFootprintFields,
GetPcbNewSettings()->m_StyleFootprintTextAndGraphics );
if( sourceFootprint ) // this is an update command if( sourceFootprint ) // this is an update command
{ {
// In the main board the new footprint replaces the old one (pos, orient, ref, value, // In the main board the new footprint replaces the old one (pos, orient, ref, value,