Set color before drawing dangling symbols.

Fixes: lp:1804003
* https://bugs.launchpad.net/kicad/+bug/1804003
This commit is contained in:
Jeff Young 2018-11-19 20:29:28 +00:00
parent e715835c29
commit 18dc618a13
1 changed files with 2 additions and 1 deletions

View File

@ -967,6 +967,8 @@ void SCH_PAINTER::draw( SCH_TEXT *aText, int aLayer )
return;
}
m_gal->SetStrokeColor( color );
if( aText->IsDangling() )
drawDanglingSymbol( m_gal, aText->GetTextPos() );
@ -978,7 +980,6 @@ void SCH_PAINTER::draw( SCH_TEXT *aText, int aLayer )
{
m_gal->SetIsFill( false );
m_gal->SetIsStroke( true );
m_gal->SetStrokeColor( color );
m_gal->SetTextAttributes( aText );
m_gal->SetLineWidth( linewidth );
m_gal->StrokeText( shownText, text_offset, aText->GetTextAngleRadians() );