diff --git a/eeschema/sch_line.cpp b/eeschema/sch_line.cpp index 3d0162f27f..9cb605f9fc 100644 --- a/eeschema/sch_line.cpp +++ b/eeschema/sch_line.cpp @@ -198,8 +198,11 @@ void SCH_LINE::Show( int nestLevel, std::ostream& os ) const std::vector SCH_LINE::ViewGetLayers() const { - return { LAYER_DANGLING, m_layer, LAYER_SELECTION_SHADOWS, LAYER_NET_COLOR_HIGHLIGHT, - LAYER_OP_VOLTAGES }; + if( IsWire() || IsBus() ) + return { LAYER_DANGLING, m_layer, LAYER_SELECTION_SHADOWS, LAYER_NET_COLOR_HIGHLIGHT, + LAYER_OP_VOLTAGES }; + + return { LAYER_DANGLING, m_layer, LAYER_SELECTION_SHADOWS, LAYER_OP_VOLTAGES }; } diff --git a/eeschema/sch_painter.cpp b/eeschema/sch_painter.cpp index abcfc8f73a..4f64282f3f 100644 --- a/eeschema/sch_painter.cpp +++ b/eeschema/sch_painter.cpp @@ -1825,6 +1825,9 @@ void SCH_PAINTER::draw( const SCH_LINE* aLine, int aLayer ) if( !highlightNetclassColors && drawingNetColorHighlights ) return; + if( drawingNetColorHighlights && !( aLine->IsWire() || aLine->IsBus() ) ) + return; + if( m_schSettings.m_OverrideItemColors && drawingNetColorHighlights ) return;