Ensure merged line gets selected if either parent is

We were only checking for the selection of a single line that gets
merged.  This prevents the merged line from being highlighted but not
selected after merging

Fixes https://gitlab.com/kicad/code/kicad/issues/10202

(cherry picked from commit addc5574b4)
This commit is contained in:
Seth Hillbrand 2022-01-01 16:52:17 -08:00
parent 410ed8a071
commit a365afde3c
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ bool SCH_EDIT_FRAME::SchematicCleanUp( SCH_SCREEN* aScreen )
AddToScreen( mergedLine, aScreen );
if( firstLine->IsSelected() )
if( firstLine->IsSelected() || secondLine->IsSelected() )
selectionTool->AddItemToSel( mergedLine, true /*quiet mode*/ );
break;