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:
parent
f17c18bcce
commit
0f247264f8
|
@ -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]()
|
||||||
|
|
Loading…
Reference in New Issue