diff --git a/eeschema/sch_collectors.cpp b/eeschema/sch_collectors.cpp index 915d9616e1..efe8597200 100644 --- a/eeschema/sch_collectors.cpp +++ b/eeschema/sch_collectors.cpp @@ -263,7 +263,7 @@ bool SCH_COLLECTOR::IsCorner() const bool is_busentry1 = (dynamic_cast( m_List[1] ) != NULL); if( (m_List[0]->Type() == SCH_LINE_T) && (m_List[1]->Type() == SCH_LINE_T) ) - return true; + return ( ( SCH_LINE* ) m_List[0])->GetLayer() == ( ( SCH_LINE* ) m_List[1])->GetLayer(); if( (m_List[0]->Type() == SCH_LINE_T) && is_busentry1 ) return true;