From 91e953868adb8c1174f70812c4b967584e401a04 Mon Sep 17 00:00:00 2001 From: Simon Richter Date: Thu, 25 Aug 2016 03:16:28 +0200 Subject: [PATCH] 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 c2c6e1a8a6..9539316573 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 ) {