Let router draw tuning pattern baselines.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15996
This commit is contained in:
Jeff Young 2024-01-07 13:54:17 +00:00
parent cd83dfa831
commit 3a781f5dbe
1 changed files with 0 additions and 22 deletions

View File

@ -1642,28 +1642,6 @@ void PCB_TUNING_PATTERN::ViewDraw( int aLayer, KIGFX::VIEW* aView ) const
int size = KiROUND( aView->ToWorld( EDIT_POINT::POINT_SIZE ) * 0.8 );
size = std::max( size, pcbIUScale.mmToIU( 0.05 ) );
if( m_baseLine )
{
for( int i = 0; i < m_baseLine->SegmentCount(); i++ )
{
SEG seg = m_baseLine->CSegment( i );
ctx.DrawLineDashed( seg.A, seg.B, size, size / 6, true );
}
}
else
{
ctx.DrawLineDashed( m_origin, m_end, size, size / 6, false );
}
if( m_tuningMode == DIFF_PAIR && m_baseLineCoupled )
{
for( int i = 0; i < m_baseLineCoupled->SegmentCount(); i++ )
{
SEG seg = m_baseLineCoupled->CSegment( i );
ctx.DrawLineDashed( seg.A, seg.B, size, size / 6, true );
}
}
SHAPE_LINE_CHAIN chain = getRectShape();
for( int i = 0; i < chain.SegmentCount(); i++ )