← Back to team overview

kicad-developers team mailing list archive

[PATCH 2/2] DRC: Test all segments

 

The DRC also runs per-segment tests, not just segment-segment, so the last
segment needs to be tested as well, with an empty list of segments to test
against.
---
 pcbnew/drc.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pcbnew/drc.cpp b/pcbnew/drc.cpp
index c2c6e1a..9539316 100644
--- a/pcbnew/drc.cpp
+++ b/pcbnew/drc.cpp
@@ -514,7 +514,7 @@ void DRC::testTracks( wxWindow *aActiveWindow, bool aShowProgressBar )
     int ii = 0;
     count = 0;
 
-    for( TRACK* segm = m_pcb->m_Track; segm && segm->Next(); segm = segm->Next() )
+    for( TRACK* segm = m_pcb->m_Track; segm; segm = segm->Next() )
     {
         if ( ii++ > delta )
         {

References