pcbnew: Fixup for 491098af3

Unselecting performs two functions: unselecting and unhighlighting.
Some items may be deselected but still live in the temporary highlighted
layer (e.g. selecting a footprint and exchanging it).  Since there is no
harm in unselecting an unselected item, we can allow it to proceed
without the check.
This commit is contained in:
Seth Hillbrand 2018-09-26 05:45:12 -07:00
parent 04a1084549
commit 65678b223a
1 changed files with 0 additions and 3 deletions

View File

@ -1784,9 +1784,6 @@ void SELECTION_TOOL::select( BOARD_ITEM* aItem )
void SELECTION_TOOL::unselect( BOARD_ITEM* aItem )
{
if( !aItem->IsSelected() )
return;
unhighlight( aItem, SELECTED, m_selection );
view()->Update( &m_selection );