From b0d9838fb4fa1f9fea30c104ec5d2faab70fbe7c Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Thu, 5 Mar 2020 07:47:06 -0800 Subject: [PATCH] PNS: Correct assertion when dragging Dragging using highlight caused an assertion as the duplicated lines were being re-added with their old links still inplace. While this was probably fine as the link references shouldn't be stale, we clear them to allow for the possibibility that the dragger will adjust the links in the future. --- pcbnew/router/pns_dragger.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pcbnew/router/pns_dragger.cpp b/pcbnew/router/pns_dragger.cpp index 2f24803f74..85b3003550 100644 --- a/pcbnew/router/pns_dragger.cpp +++ b/pcbnew/router/pns_dragger.cpp @@ -206,6 +206,7 @@ bool DRAGGER::dragMarkObstacles( const VECTOR2I& aP ) LINE origLine( m_draggedLine ); LINE dragged( m_draggedLine ); dragged.SetSnapThreshhold( thresh ); + dragged.ClearSegmentLinks(); if( m_mode == DM_SEGMENT ) dragged.DragSegment( aP, m_draggedSegmentIndex );