Snap mouse point before picking startItem.

Fixes https://gitlab.com/kicad/code/kicad/issues/9700
This commit is contained in:
Jeff Young 2021-11-20 13:43:49 +00:00
parent 1f4858c314
commit 9e3362d14c
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 else
p = cp; 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 ) ) if( !m_gridHelper->GetUseGrid() && m_startItem && !m_startItem->Layers().Overlaps( tl ) )
m_startItem = nullptr; m_startItem = nullptr;