Add missing check in tuning pattern outline.

This commit is contained in:
Alex Shvartzkop 2024-02-20 20:32:07 +03:00
parent 0afac71b27
commit 2e97d5d7cc
1 changed files with 1 additions and 1 deletions

View File

@ -1716,7 +1716,7 @@ SHAPE_LINE_CHAIN PCB_TUNING_PATTERN::getOutline() const
poly.OffsetLineChain( *m_baseLine, amplitude, CORNER_STRATEGY::ROUND_ALL_CORNERS, poly.OffsetLineChain( *m_baseLine, amplitude, CORNER_STRATEGY::ROUND_ALL_CORNERS,
ARC_LOW_DEF, false ); ARC_LOW_DEF, false );
if( m_baseLineCoupled ) if( m_tuningMode == DIFF_PAIR && m_baseLineCoupled )
{ {
SHAPE_POLY_SET polyCoupled; SHAPE_POLY_SET polyCoupled;
polyCoupled.OffsetLineChain( *m_baseLineCoupled, amplitude, polyCoupled.OffsetLineChain( *m_baseLineCoupled, amplitude,