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.
This commit is contained in:
jean-pierre charras 2021-11-21 15:31:05 +01:00
parent cf1d5f5724
commit 302c5ab537
1 changed files with 1 additions and 1 deletions

View File

@ -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;