Pcbnew: re-add draw umbilical line for texts in footprints.

It was lost after removing FP_TEXT in code.
This commit is contained in:
jean-pierre charras 2023-04-18 09:48:46 +02:00
parent e9a93bc711
commit ba12f00c15
1 changed files with 10 additions and 0 deletions

View File

@ -2012,6 +2012,16 @@ void PCB_PAINTER::draw( const PCB_TEXT* aText, int aLayer )
strokeText( resolvedText, aText->GetTextPos(), attrs );
}
}
// Draw the umbilical line for texts in footprints
FOOTPRINT* fp_parent = aText->GetParentFootprint();
if( fp_parent && aText->IsSelected() )
{
m_gal->SetLineWidth( m_pcbSettings.m_outlineWidth );
m_gal->SetStrokeColor( m_pcbSettings.GetColor( nullptr, LAYER_ANCHOR ) );
m_gal->DrawLine( aText->GetTextPos(), fp_parent->GetPosition() );
}
}