BOARD_NETLIST_UPDATER: Minor fix
This commit is contained in:
parent
d40e34aebe
commit
dda9d6c86c
|
@ -372,7 +372,6 @@ bool BOARD_NETLIST_UPDATER::updateFootprintParameters( FOOTPRINT* aPcbFootprint,
|
||||||
newField->SetText( pair.second );
|
newField->SetText( pair.second );
|
||||||
newField->SetVisible( false );
|
newField->SetVisible( false );
|
||||||
newField->SetLayer( aPcbFootprint->GetLayer() == F_Cu ? F_Fab : B_Fab );
|
newField->SetLayer( aPcbFootprint->GetLayer() == F_Cu ? F_Fab : B_Fab );
|
||||||
newField->StyleFromSettings( m_frame->GetDesignSettings() );
|
|
||||||
|
|
||||||
// Give the relative position (0,0) in footprint
|
// Give the relative position (0,0) in footprint
|
||||||
newField->SetPosition( aPcbFootprint->GetPosition() );
|
newField->SetPosition( aPcbFootprint->GetPosition() );
|
||||||
|
@ -381,7 +380,8 @@ bool BOARD_NETLIST_UPDATER::updateFootprintParameters( FOOTPRINT* aPcbFootprint,
|
||||||
|
|
||||||
if( m_frame )
|
if( m_frame )
|
||||||
{
|
{
|
||||||
auto view = m_frame->GetCanvas()->GetView();
|
newField->StyleFromSettings( m_frame->GetDesignSettings() );
|
||||||
|
KIGFX::PCB_VIEW* view = m_frame->GetCanvas()->GetView();
|
||||||
view->Add( newField );
|
view->Add( newField );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue