Don't recalculate meander spacing. Use constrained value instead.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/1776
This commit is contained in:
Roberto Fernandez Bautista 2021-06-19 20:50:45 +01:00
parent 0c2ac9a711
commit e402563087
1 changed files with 1 additions and 2 deletions

View File

@ -291,7 +291,6 @@ void MEANDER_SHAPE::uShape( int aSides, int aCorner, int aTop )
SHAPE_LINE_CHAIN MEANDER_SHAPE::genMeanderShape( VECTOR2D aP, VECTOR2D aDir,
bool aSide, MEANDER_TYPE aType, int aAmpl, int aBaselineOffset )
{
const MEANDER_SETTINGS& st = Settings();
int cr = cornerRadius();
int offset = aBaselineOffset;
int spc = spacing();
@ -361,7 +360,7 @@ SHAPE_LINE_CHAIN MEANDER_SHAPE::genMeanderShape( VECTOR2D aP, VECTOR2D aDir,
miter( cr - offset, false );
uShape( aAmpl - 2 * cr + std::abs( offset ), cr + offset, spc - 2 * cr );
miter( cr - offset, false );
lc.Append( aP + dir_v_b + aDir.Resize( 2 * st.m_spacing ) );
lc.Append( aP + dir_v_b + aDir.Resize( 2 * spc ) );
break;
}