PNS: Don't snap to end items if snapping is disabled by modifier key

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8033
This commit is contained in:
Jon Evans 2021-04-04 10:22:23 -04:00
parent 49cc461ac9
commit 6b24abac8f
1 changed files with 1 additions and 1 deletions

View File

@ -322,7 +322,7 @@ void TOOL_BASE::updateEndItem( const TOOL_EVENT& aEvent )
break;
}
if( checkSnap( endItem ) )
if( m_gridHelper->GetSnap() && checkSnap( endItem ) )
{
m_endItem = endItem;
m_endSnapPoint = snapToItem( endItem, mousePos );