Pcbnew: fix missing initialization in PCB_PAINTER::draw( const TRACK* aTrack, int aLayer )
the stroke mode was always activated, even in fill mode. creating incorrect size shape for null length track segments.
This commit is contained in:
parent
e22113ccef
commit
cf5d3ae43f
|
@ -390,18 +390,19 @@ void PCB_PAINTER::draw( const TRACK* aTrack, int aLayer )
|
|||
// Draw a regular track
|
||||
const COLOR4D& color = m_pcbSettings.GetColor( aTrack, aLayer );
|
||||
m_gal->SetStrokeColor( color );
|
||||
m_gal->SetIsStroke( true );
|
||||
|
||||
if( m_pcbSettings.m_sketchMode[LAYER_TRACKS] )
|
||||
{
|
||||
// Outline mode
|
||||
m_gal->SetLineWidth( m_pcbSettings.m_outlineWidth );
|
||||
m_gal->SetIsStroke( true );
|
||||
m_gal->SetIsFill( false );
|
||||
}
|
||||
else
|
||||
{
|
||||
// Filled mode
|
||||
m_gal->SetFillColor( color );
|
||||
m_gal->SetIsStroke( false );
|
||||
m_gal->SetIsFill( true );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue