Browse Source

Fix incorrect behavior when collection footprint items in collectors.cpp.

It was a bug in commit 208622699.

Fixes: lp:1803803
https://bugs.launchpad.net/kicad/+bug/1803803
pull/13/head
jean-pierre charras 7 years ago
parent
commit
0ef7aeb274
  1. 20
      pcbnew/collectors.cpp

20
pcbnew/collectors.cpp

@ -418,17 +418,11 @@ SEARCH_RESULT GENERAL_COLLECTOR::Inspect( EDA_ITEM* testItem, void* testData )
goto exit;
}
}
else if( module )
{
if( module->HitTest( m_RefPos ) && module->HitTestAccurate( m_RefPos ) )
{
Append( item );
goto exit;
}
}
else if( item->HitTest( m_RefPos ) )
{
Append( item );
if( !module || module->HitTestAccurate( m_RefPos ) )
Append( item );
goto exit;
}
}
@ -470,14 +464,6 @@ SEARCH_RESULT GENERAL_COLLECTOR::Inspect( EDA_ITEM* testItem, void* testData )
goto exit;
}
}
else if( module )
{
if( module->HitTest( m_RefPos ) && module->HitTestAccurate( m_RefPos ) )
{
Append2nd( item );
goto exit;
}
}
else if( item->HitTest( m_RefPos ) )
{
Append2nd( item );

Loading…
Cancel
Save