From 9e3362d14c8940e53cbe6888d9454736766a5b58 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 20 Nov 2021 13:43:49 +0000 Subject: [PATCH] Snap mouse point before picking startItem. Fixes https://gitlab.com/kicad/code/kicad/issues/9700 --- pcbnew/router/pns_tool_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/router/pns_tool_base.cpp b/pcbnew/router/pns_tool_base.cpp index df33e7cc34..cc59f9dd3b 100644 --- a/pcbnew/router/pns_tool_base.cpp +++ b/pcbnew/router/pns_tool_base.cpp @@ -279,7 +279,7 @@ void TOOL_BASE::updateStartItem( const TOOL_EVENT& aEvent, bool aIgnorePads ) else p = cp; - m_startItem = pickSingleItem( p, -1, -1, aIgnorePads ); + m_startItem = pickSingleItem( cp, -1, -1, aIgnorePads ); if( !m_gridHelper->GetUseGrid() && m_startItem && !m_startItem->Layers().Overlaps( tl ) ) m_startItem = nullptr;