Fix a typo.

Fixes https://gitlab.com/kicad/code/kicad/issues/14515

(cherry picked from commit 6059e895d7)
This commit is contained in:
Jeff Young 2023-04-12 10:44:34 +01:00 committed by Alex
parent 4e0f77c0f4
commit 947923509e
1 changed files with 6 additions and 6 deletions

View File

@ -64,8 +64,8 @@ bool COMPONENT_DRAGGER::Start( const VECTOR2I& aP, ITEM_SET& aPrimitives )
seenItems.insert( aItem ); seenItems.insert( aItem );
// Segments that go directly between two linked pads are special-cased // Segments that go directly between two linked pads are special-cased
VECTOR2I otherEnd = ( aJoint->Pos() == aItem->Anchor( 0 ) ) ? VECTOR2I otherEnd = ( aJoint->Pos() == aItem->Anchor( 0 ) ) ? aItem->Anchor( 1 )
aItem->Anchor( 1 ) : aItem->Anchor( 0 ); : aItem->Anchor( 0 );
const JOINT* otherJoint = m_world->FindJoint( otherEnd, aItem->Layer(), aItem->Net() ); const JOINT* otherJoint = m_world->FindJoint( otherEnd, aItem->Layer(), aItem->Net() );
if( otherJoint && otherJoint->LinkCount( ITEM::SOLID_T ) ) 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 ); m_conns.push_back( cn );
}; };
for( auto item : aPrimitives.Items() ) for( ITEM* item : aPrimitives.Items() )
{ {
if( item->Kind() != ITEM::SOLID_T ) if( item->Kind() != ITEM::SOLID_T )
continue; continue;
@ -126,10 +126,10 @@ bool COMPONENT_DRAGGER::Start( const VECTOR2I& aP, ITEM_SET& aPrimitives )
const JOINT* jt = m_world->FindJoint( solid->Pos(), solid ); 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 ) ) if( link->OfKind( ITEM::SEGMENT_T | ITEM::ARC_T ) )
addLinked( solid, jt, static_cast<LINKED_ITEM*>( item ) ); addLinked( solid, jt, static_cast<LINKED_ITEM*>( link ) );
} }
std::vector<JOINT*> extraJoints; std::vector<JOINT*> extraJoints;