From 8c4361bbc68ad786b33522761860ab8f7e7c3e6b Mon Sep 17 00:00:00 2001 From: Tomasz Wlostowski Date: Thu, 27 May 2021 23:55:53 +0200 Subject: [PATCH] router: adapt to new SHAPE_LINE_CHAIN::INTERSECTIONS structure --- pcbnew/router/pns_line_placer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/router/pns_line_placer.cpp b/pcbnew/router/pns_line_placer.cpp index bb8a8a00ef..31ac2d743f 100644 --- a/pcbnew/router/pns_line_placer.cpp +++ b/pcbnew/router/pns_line_placer.cpp @@ -132,9 +132,9 @@ bool LINE_PLACER::handleSelfIntersections() // closest to the beginning of the tail. for( const SHAPE_LINE_CHAIN::INTERSECTION& i : ips ) { - if( i.our.Index() < n ) + if( i.index_our < n ) { - n = i.our.Index(); + n = i.index_our; ipoint = i.p; } }