From 78b5dbead6cdc1bcfb314527cd0d287a1221dc24 Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Thu, 8 Dec 2022 12:42:52 -0500 Subject: [PATCH] Schematic: show partial selection of graphic lines Use the same inverted-dangling-shadow as regular wires Fixes: https://gitlab.com/kicad/code/kicad/-/issues/13095 --- eeschema/sch_painter.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/eeschema/sch_painter.cpp b/eeschema/sch_painter.cpp index 14fbaaf7fd..8216bb5124 100644 --- a/eeschema/sch_painter.cpp +++ b/eeschema/sch_painter.cpp @@ -1683,7 +1683,9 @@ void SCH_PAINTER::draw( const SCH_LINE *aLine, int aLayer ) if( drawingDangling || drawingShadows ) { - if( aLine->IsStartDangling() && aLine->IsWire() ) + if( ( aLine->IsWire() && aLine->IsStartDangling() ) + || ( aLine->IsGraphicLine() && aLine->IsSelected() && !aLine->IsNew() + && !aLine->HasFlag( STARTPOINT ) ) ) { COLOR4D danglingColor = ( drawingShadows && !aLine->HasFlag( STARTPOINT ) ) ? color.Inverted() : color; @@ -1692,7 +1694,9 @@ void SCH_PAINTER::draw( const SCH_LINE *aLine, int aLayer ) aLine->IsBrightened() ); } - if( aLine->IsEndDangling() && aLine->IsWire() ) + if( ( aLine->IsWire() && aLine->IsEndDangling() ) + || ( aLine->IsGraphicLine() && aLine->IsSelected() && !aLine->IsNew() + && !aLine->HasFlag( ENDPOINT ) ) ) { COLOR4D danglingColor = ( drawingShadows && !aLine->HasFlag( ENDPOINT ) ) ? color.Inverted() : color;