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:
Seth Hillbrand 2020-08-28 11:52:51 -07:00
parent 29a459768a
commit 4e08ec79dc
1 changed files with 0 additions and 3 deletions

View File

@ -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;