From 42c114f6ed37b79877ae53988a082c4ace306892 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 2 Jan 2021 00:30:22 +0000 Subject: [PATCH] Record status of via dragging in Walkaround mode. Fixes https://gitlab.com/kicad/code/kicad/issues/3967 --- pcbnew/router/pns_dragger.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pcbnew/router/pns_dragger.cpp b/pcbnew/router/pns_dragger.cpp index b77a18227a..68f14c06d0 100644 --- a/pcbnew/router/pns_dragger.cpp +++ b/pcbnew/router/pns_dragger.cpp @@ -419,20 +419,21 @@ bool DRAGGER::dragWalkaround( const VECTOR2I& aP ) ok = true; } - if(ok) + if( ok ) { m_lastNode->Remove( origLine ); SEG dummy; optimizeAndUpdateDraggedLine( dragged, dummy, aP ); } - break; } + break; + case DM_VIA: // fixme... { dragViaWalkaround( m_initialVia, m_lastNode, aP ); - - break; + ok = !m_world->CheckColliding( m_draggedItems ); } + break; } m_dragStatus = ok;