Set color before drawing dangling symbols.
Fixes: lp:1804003 * https://bugs.launchpad.net/kicad/+bug/1804003
This commit is contained in:
parent
e715835c29
commit
18dc618a13
|
@ -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() );
|
||||
|
|
Loading…
Reference in New Issue