diff --git a/pcbnew/router/pns_meander.cpp b/pcbnew/router/pns_meander.cpp index b95f5b489e..4d8e6f54d6 100644 --- a/pcbnew/router/pns_meander.cpp +++ b/pcbnew/router/pns_meander.cpp @@ -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; }