Browse Source

Meet irreflexive requirements of std::sort

Fixes https://gitlab.com/kicad/code/kicad/issues/6053
6.0.7
Jeff Young 5 years ago
parent
commit
16d5f95981
  1. 4
      eeschema/connection_graph.cpp

4
eeschema/connection_graph.cpp

@ -142,6 +142,10 @@ bool CONNECTION_SUBGRAPH::ResolveDrivers( bool aCreateMarkers )
std::sort( candidates.begin(), candidates.end(),
[&]( SCH_ITEM* a, SCH_ITEM* b ) -> bool
{
// meet irreflexive requirements of std::sort
if( a == b )
return false;
SCH_CONNECTION* ac = a->Connection( &m_sheet );
SCH_CONNECTION* bc = b->Connection( &m_sheet );

Loading…
Cancel
Save