Make sure de-selected items get redrawn.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16385
This commit is contained in:
Jeff Young 2023-12-17 17:59:30 +00:00
parent b29a56530c
commit a96b7116d0
1 changed files with 4 additions and 1 deletions

View File

@ -2919,7 +2919,10 @@ void PCB_SELECTION_TOOL::unhighlightInternal( EDA_ITEM* aItem, int aMode, bool a
aItem->ClearBrightened();
if( aUsingOverlay && aMode != BRIGHTENED )
view()->Hide( aItem, false ); // // Restore original item visibility
{
view()->Hide( aItem, false ); // Restore original item visibility...
view()->Update( aItem ); // ... and make sure it's redrawn un-selected
}
if( BOARD_ITEM* boardItem = dynamic_cast<BOARD_ITEM*>( aItem ) )
{