Need to setup outline mode stuff if it's turned on late.

This commit is contained in:
Jeff Young 2022-10-18 14:41:27 +01:00
parent 1f0fa3ef63
commit 8d40bf25d6
1 changed files with 10 additions and 0 deletions

View File

@ -916,6 +916,7 @@ void PCB_PAINTER::draw( const PCB_VIA* aVia, int aLayer )
{
draw = true;
outline_mode = true;
m_gal->SetLineWidth( m_pcbSettings.m_outlineWidth );
}
if( !outline_mode )
@ -1234,6 +1235,15 @@ void PCB_PAINTER::draw( const PAD* aPad, int aLayer )
outline_mode = true;
}
if( outline_mode )
{
// Outline mode
m_gal->SetIsFill( false );
m_gal->SetIsStroke( true );
m_gal->SetLineWidth( m_pcbSettings.m_outlineWidth );
m_gal->SetStrokeColor( color );
}
if( drawShape )
{
VECTOR2I pad_size = aPad->GetSize();