Remove children from view_group when de-selecting.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16139

(cherry picked from commit 4a25ef164d)
This commit is contained in:
Jeff Young 2023-11-22 14:21:42 +00:00
parent 5f8a0b0728
commit 789a695737
1 changed files with 4 additions and 0 deletions

View File

@ -1956,6 +1956,10 @@ void EE_SELECTION_TOOL::unhighlight( EDA_ITEM* aItem, int aMode, SELECTION* aGro
aChild->ClearSelected();
else if( aMode == BRIGHTENED )
aChild->ClearBrightened();
}
if( aGroup )
aGroup->Remove( aChild );
} );
}