From bbce641ad5432e61b050bd4185a0969c35029824 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 3 Jul 2015 20:58:13 +0200 Subject: [PATCH] Umbilical lines for module texts (GAL). --- pcbnew/pcb_painter.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pcbnew/pcb_painter.cpp b/pcbnew/pcb_painter.cpp index cd814a5a65..c23be9aa51 100644 --- a/pcbnew/pcb_painter.cpp +++ b/pcbnew/pcb_painter.cpp @@ -825,6 +825,14 @@ void PCB_PAINTER::draw( const TEXTE_MODULE* aText, int aLayer ) m_gal->SetStrokeColor( color ); m_gal->SetTextAttributes( aText ); m_gal->StrokeText( shownText, position, orientation ); + + // Draw the umbilical line + if( aText->IsSelected() && aText->GetType() != TEXTE_MODULE::TEXT_is_DIVERS ) + { + m_gal->SetLineWidth( m_pcbSettings.m_outlineWidth ); + m_gal->SetStrokeColor( COLOR4D( 0.0, 0.0, 1.0, 1.0 ) ); + m_gal->DrawLine( position, aText->GetParent()->GetPosition() ); + } }