schematic: do not skip item repaint if item's parent type != SCHEMATIC_T

the item repaint was skipped when unhighlightning symbols after dragging
and unselecting.

Fixes https://gitlab.com/kicad/code/kicad/issues/17193
Fixes https://gitlab.com/kicad/code/kicad/issues/17206
This commit is contained in:
Petri Hodju 2024-02-28 09:02:44 +02:00 committed by Jon Evans
parent 4851b0f1ac
commit c76c4ba304
1 changed files with 2 additions and 4 deletions

View File

@ -2566,8 +2566,7 @@ void EE_SELECTION_TOOL::highlight( EDA_ITEM* aItem, int aMode, SELECTION* aGroup
if( aItem->GetParent() && aItem->GetParent()->Type() != SCHEMATIC_T )
getView()->Update( aItem->GetParent(), KIGFX::REPAINT );
else
getView()->Update( aItem, KIGFX::REPAINT );
getView()->Update( aItem, KIGFX::REPAINT );
}
@ -2615,8 +2614,7 @@ void EE_SELECTION_TOOL::unhighlight( EDA_ITEM* aItem, int aMode, SELECTION* aGro
if( aItem->GetParent() && aItem->GetParent()->Type() != SCHEMATIC_T )
getView()->Update( aItem->GetParent(), KIGFX::REPAINT );
else
getView()->Update( aItem, KIGFX::REPAINT );
getView()->Update( aItem, KIGFX::REPAINT );
}