PCB_PAINTER: do not show track arc clearance when not needed

fix also a minor compil warning.
Fixes #10137
https://gitlab.com/kicad/code/kicad/issues/10137
This commit is contained in:
jean-pierre charras 2021-12-30 09:21:35 +01:00
parent 7c3f0612f1
commit 480a548171
2 changed files with 2 additions and 2 deletions

View File

@ -2947,7 +2947,7 @@ SCH_SHAPE* SCH_SEXPR_PARSER::parseSchCircle()
T token;
wxPoint center;
int radius;
int radius = 0;
STROKE_PARAMS stroke( Mils2iu( DEFAULT_LINE_WIDTH_MILS ), PLOT_DASH_TYPE::DEFAULT );
FILL_PARAMS fill;
std::unique_ptr<SCH_SHAPE> circle = std::make_unique<SCH_SHAPE>( SHAPE_T::CIRCLE );

View File

@ -673,7 +673,7 @@ void PCB_PAINTER::draw( const PCB_ARC* aArc, int aLayer )
}
// Clearance lines
if( pcbconfig()->m_Display.m_ShowTrackClearanceMode >= SHOW_TRACK_CLEARANCE_WHILE_ROUTING
if( pcbconfig()->m_Display.m_ShowTrackClearanceMode == SHOW_TRACK_CLEARANCE_WITH_VIA_ALWAYS
&& !m_pcbSettings.m_ForceClearanceDisplayOff )
{
int clearance = aArc->GetOwnClearance( m_pcbSettings.GetActiveLayer() );