Reverse shown-source logic so we report if it's the netclass width.
(whether or not it's *also* the previous track width).
This commit is contained in:
parent
675b6b5d5c
commit
8268234aa1
|
@ -716,8 +716,9 @@ void ROUTER_TOOL::updateSizesAfterLayerSwitch( PCB_LAYER_ID targetLayer )
|
||||||
{
|
{
|
||||||
int width = sizes.TrackWidth();
|
int width = sizes.TrackWidth();
|
||||||
|
|
||||||
// Only change the size if we're explicitly using the net class, or we're out of range for our
|
// Only change the size if we're explicitly using the net class, or we're out of range
|
||||||
// new constraints. Otherwise, just leave the track width alone so we don't change for no reason.
|
// for our new constraints. Otherwise, just leave the track width alone so we don't
|
||||||
|
// change for no reason.
|
||||||
if( bds.UseNetClassTrack()
|
if( bds.UseNetClassTrack()
|
||||||
|| ( width < bds.m_TrackMinWidth )
|
|| ( width < bds.m_TrackMinWidth )
|
||||||
|| ( width < constraint.m_Value.Min() )
|
|| ( width < constraint.m_Value.Min() )
|
||||||
|
@ -726,12 +727,12 @@ void ROUTER_TOOL::updateSizesAfterLayerSwitch( PCB_LAYER_ID targetLayer )
|
||||||
sizes.SetTrackWidth( std::max( bds.m_TrackMinWidth, constraint.m_Value.Opt() ) );
|
sizes.SetTrackWidth( std::max( bds.m_TrackMinWidth, constraint.m_Value.Opt() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( sizes.TrackWidth() == width )
|
if( sizes.TrackWidth() == constraint.m_Value.Opt() )
|
||||||
sizes.SetWidthSource( _( "existing track" ) );
|
sizes.SetWidthSource( constraint.GetName() );
|
||||||
else if( sizes.TrackWidth() == bds.m_TrackMinWidth )
|
else if( sizes.TrackWidth() == bds.m_TrackMinWidth )
|
||||||
sizes.SetWidthSource( _( "board minimum track width" ) );
|
sizes.SetWidthSource( _( "board minimum track width" ) );
|
||||||
else
|
else
|
||||||
sizes.SetWidthSource( constraint.GetName() );
|
sizes.SetWidthSource( _( "existing track" ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue