From b5d904b45d5d18649392696021718ff4b7d56485 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 30 Oct 2023 19:55:34 +0000 Subject: [PATCH] Ignore VVIAs when assembling length-tuning line. Fixes https://gitlab.com/kicad/code/kicad/-/issues/15995 --- pcbnew/generators/pcb_tuning_pattern.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/generators/pcb_tuning_pattern.cpp b/pcbnew/generators/pcb_tuning_pattern.cpp index 1a5896fb8b..ae6c8423b5 100644 --- a/pcbnew/generators/pcb_tuning_pattern.cpp +++ b/pcbnew/generators/pcb_tuning_pattern.cpp @@ -681,7 +681,7 @@ static std::optional getPNSLine( const VECTOR2I& aStart, const VECTOR if( !startItem || !endItem ) return std::nullopt; - PNS::LINE line = world->AssembleLine( startItem ); + PNS::LINE line = world->AssembleLine( startItem, nullptr, false, true ); SHAPE_LINE_CHAIN oldChain = line.CLine(); wxCHECK( line.ContainsLink( endItem ), std::nullopt );