From 57ceec56061d6b042cbdcf15da8d8cd22f0a1b65 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 2 Oct 2018 14:38:02 -0700 Subject: [PATCH] pcbnew: Allow DRC violations when requested in dp --- pcbnew/router/pns_diff_pair_placer.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pcbnew/router/pns_diff_pair_placer.cpp b/pcbnew/router/pns_diff_pair_placer.cpp index 476621d709..cddc9b093c 100644 --- a/pcbnew/router/pns_diff_pair_placer.cpp +++ b/pcbnew/router/pns_diff_pair_placer.cpp @@ -711,8 +711,7 @@ bool DIFF_PAIR_PLACER::Move( const VECTOR2I& aP , ITEM* aEndItem ) delete m_lastNode; m_lastNode = NULL; - if( !route( aP ) ) - return false; + bool retval = route( aP ); NODE* latestNode = m_currentNode; m_lastNode = latestNode->Branch(); @@ -722,7 +721,7 @@ bool DIFF_PAIR_PLACER::Move( const VECTOR2I& aP , ITEM* aEndItem ) updateLeadingRatLine(); - return true; + return retval; } @@ -740,7 +739,7 @@ void DIFF_PAIR_PLACER::UpdateSizes( const SIZES_SETTINGS& aSizes ) bool DIFF_PAIR_PLACER::FixRoute( const VECTOR2I& aP, ITEM* aEndItem, bool aForceFinish ) { - if( !m_fitOk ) + if( !m_fitOk && !Settings().CanViolateDRC() ) return false; if( m_currentTrace.CP().SegmentCount() < 1 ||