Fix missing check against DELETED_BOARD_ITEM::GetInstance().

Fixes https://gitlab.com/kicad/code/kicad/issues/7575
This commit is contained in:
Jeff Young 2021-02-17 16:52:32 +00:00
parent 309fb0825c
commit 0c2870c65f
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ void PCB_BASE_FRAME::FocusOnItem( BOARD_ITEM* aItem )
GetCanvas()->Refresh();
}
if( aItem )
if( aItem && aItem != DELETED_BOARD_ITEM::GetInstance() )
{
aItem->SetBrightened();