Record status of via dragging in Walkaround mode.

Fixes https://gitlab.com/kicad/code/kicad/issues/3967
This commit is contained in:
Jeff Young 2021-01-02 00:30:22 +00:00
parent 419d8dcd6f
commit 42c114f6ed
1 changed files with 5 additions and 4 deletions

View File

@ -419,20 +419,21 @@ bool DRAGGER::dragWalkaround( const VECTOR2I& aP )
ok = true; ok = true;
} }
if(ok) if( ok )
{ {
m_lastNode->Remove( origLine ); m_lastNode->Remove( origLine );
SEG dummy; SEG dummy;
optimizeAndUpdateDraggedLine( dragged, dummy, aP ); optimizeAndUpdateDraggedLine( dragged, dummy, aP );
} }
break;
} }
break;
case DM_VIA: // fixme... case DM_VIA: // fixme...
{ {
dragViaWalkaround( m_initialVia, m_lastNode, aP ); dragViaWalkaround( m_initialVia, m_lastNode, aP );
ok = !m_world->CheckColliding( m_draggedItems );
break;
} }
break;
} }
m_dragStatus = ok; m_dragStatus = ok;