From 302c5ab537f4b8e1f7ccb3739697ef7f3259e2e5 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 21 Nov 2021 15:31:05 +0100 Subject: [PATCH] Fix an issue created by commit 9e3362d1. the issue was the graphic cursor was locked on the first snap point in route mode, once a snap point is found. --- 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 cc59f9dd3b..984e92829e 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( cp, -1, -1, aIgnorePads ); + m_startItem = pickSingleItem( aEvent.IsClick() ? cp : p, -1, -1, aIgnorePads ); if( !m_gridHelper->GetUseGrid() && m_startItem && !m_startItem->Layers().Overlaps( tl ) ) m_startItem = nullptr;