From 3a781f5dbe6eb7a8a55bd3d73e118e87411686e3 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 7 Jan 2024 13:54:17 +0000 Subject: [PATCH] Let router draw tuning pattern baselines. Fixes https://gitlab.com/kicad/code/kicad/-/issues/15996 --- pcbnew/generators/pcb_tuning_pattern.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/pcbnew/generators/pcb_tuning_pattern.cpp b/pcbnew/generators/pcb_tuning_pattern.cpp index bfb924ca82..c09fff40a2 100644 --- a/pcbnew/generators/pcb_tuning_pattern.cpp +++ b/pcbnew/generators/pcb_tuning_pattern.cpp @@ -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++ )