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:
parent
7c3f0612f1
commit
480a548171
|
@ -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 );
|
||||
|
|
|
@ -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() );
|
||||
|
|
Loading…
Reference in New Issue