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

This commit is contained in:
Tomasz Wlostowski 2016-02-08 21:28:22 -05:00 committed by Wayne Stambaugh
parent eaea15fbef
commit eb8b407717
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 );