From 6059e895d78ab4ffde547a58447f51876f3bcc12 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 12 Apr 2023 10:44:34 +0100 Subject: [PATCH] Fix a typo. Fixes https://gitlab.com/kicad/code/kicad/issues/14515 --- pcbnew/router/pns_component_dragger.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pcbnew/router/pns_component_dragger.cpp b/pcbnew/router/pns_component_dragger.cpp index a2e044a57d..b1d2025a11 100644 --- a/pcbnew/router/pns_component_dragger.cpp +++ b/pcbnew/router/pns_component_dragger.cpp @@ -64,8 +64,8 @@ bool COMPONENT_DRAGGER::Start( const VECTOR2I& aP, ITEM_SET& aPrimitives ) seenItems.insert( aItem ); // Segments that go directly between two linked pads are special-cased - VECTOR2I otherEnd = ( aJoint->Pos() == aItem->Anchor( 0 ) ) ? - aItem->Anchor( 1 ) : aItem->Anchor( 0 ); + VECTOR2I otherEnd = ( aJoint->Pos() == aItem->Anchor( 0 ) ) ? aItem->Anchor( 1 ) + : aItem->Anchor( 0 ); const JOINT* otherJoint = m_world->FindJoint( otherEnd, aItem->Layer(), aItem->Net() ); if( otherJoint && otherJoint->LinkCount( ITEM::SOLID_T ) ) @@ -112,7 +112,7 @@ bool COMPONENT_DRAGGER::Start( const VECTOR2I& aP, ITEM_SET& aPrimitives ) m_conns.push_back( cn ); }; - for( auto item : aPrimitives.Items() ) + for( ITEM* item : aPrimitives.Items() ) { if( item->Kind() != ITEM::SOLID_T ) continue; @@ -126,10 +126,10 @@ bool COMPONENT_DRAGGER::Start( const VECTOR2I& aP, ITEM_SET& aPrimitives ) const JOINT* jt = m_world->FindJoint( solid->Pos(), solid ); - for( auto link : jt->LinkList() ) + for( ITEM* link : jt->LinkList() ) { - if( item->OfKind( ITEM::SEGMENT_T | ITEM::ARC_T ) ) - addLinked( solid, jt, static_cast( item ) ); + if( link->OfKind( ITEM::SEGMENT_T | ITEM::ARC_T ) ) + addLinked( solid, jt, static_cast( link ) ); } std::vector extraJoints;