pcbnew: Don't skip adjacent points
std::make_reverse_iterator already accounts for the difference in directional representation Fixes https://gitlab.com/kicad/code/kicad/issues/5392
This commit is contained in:
parent
29a459768a
commit
4e08ec79dc
|
@ -444,9 +444,6 @@ bool RN_NET::NearestBicoloredPair( const RN_NET& aOtherNet, CN_ANCHOR_PTR& aNode
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Step 3: using the same starting point, check points backwards for closer points
|
/// Step 3: using the same starting point, check points backwards for closer points
|
||||||
if( rev_it != m_nodes.rend() )
|
|
||||||
++rev_it;
|
|
||||||
|
|
||||||
for( ; rev_it != m_nodes.rend(); ++rev_it )
|
for( ; rev_it != m_nodes.rend(); ++rev_it )
|
||||||
{
|
{
|
||||||
auto nodeB = *rev_it;
|
auto nodeB = *rev_it;
|
||||||
|
|
Loading…
Reference in New Issue