Router: check layers of all traversed joints in FindLinesBetweenJoints(). (fixes lp:1531762)

This commit is contained in:
Tomasz Wlostowski 2016-01-11 13:37:00 -05:00 committed by Wayne Stambaugh
parent ef87a0de54
commit 95252267ec
1 changed files with 3 additions and 0 deletions

View File

@ -885,6 +885,9 @@ int PNS_NODE::FindLinesBetweenJoints( PNS_JOINT& aA, PNS_JOINT& aB, std::vector<
PNS_SEGMENT* seg = static_cast<PNS_SEGMENT*>( item );
PNS_LINE line = AssembleLine( seg );
if ( !line.Layers().Overlaps( aB.Layers() ) )
continue;
PNS_JOINT j_start, j_end;
FindLineEnds( line, j_start, j_end );