Pcbnew: DRC ignores first net of list of nets to test.

Fixes: lp:1798985
https://bugs.launchpad.net/kicad/+bug/1798985
This commit is contained in:
jean-pierre charras 2018-10-21 16:31:07 +02:00
parent f17c18bcce
commit 0f247264f8
1 changed files with 8 additions and 8 deletions

View File

@ -92,11 +92,11 @@ void CONNECTIVITY_DATA::updateRatsnest()
#endif #endif
std::vector<RN_NET*> dirty_nets; std::vector<RN_NET*> dirty_nets;
// Start with net 1 as net 0 is reserved for not-connected
std::copy_if( m_nets.begin() + 1, m_nets.end(), std::back_inserter( dirty_nets ), std::copy_if( m_nets.begin() + 1, m_nets.end(), std::back_inserter( dirty_nets ),
[] ( RN_NET* aNet ) { return aNet->IsDirty(); } ); [] ( RN_NET* aNet ) { return aNet->IsDirty(); } );
// Start with net 1 as net 0 is reserved for not-connected std::atomic<size_t> nextNet( 0 );
std::atomic<size_t> nextNet( 1 );
std::atomic<size_t> threadsFinished( 0 ); std::atomic<size_t> threadsFinished( 0 );
auto update_lambda = [&nextNet, &threadsFinished, &dirty_nets, this]() auto update_lambda = [&nextNet, &threadsFinished, &dirty_nets, this]()