Don't restrict start item to same layer if snapping is enabled

Fixes https://gitlab.com/kicad/code/kicad/-/issues/7276
This commit is contained in:
Jon Evans 2021-01-25 21:19:26 -05:00
parent 6a48e21eb2
commit b96bcc86b1
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ void TOOL_BASE::updateStartItem( const TOOL_EVENT& aEvent, bool aIgnorePads )
m_startItem = pickSingleItem( p, -1, -1, aIgnorePads );
if( m_startItem && !m_startItem->Layers().Overlaps( tl ) )
if( !m_gridHelper->GetUseGrid() && m_startItem && !m_startItem->Layers().Overlaps( tl ) )
m_startItem = nullptr;
m_startSnapPoint = snapToItem( m_startItem, p );