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
This commit is contained in:
Mike Williams 2022-12-08 12:42:52 -05:00
parent 4b02e5efb4
commit 78b5dbead6
1 changed files with 6 additions and 2 deletions

View File

@ -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;