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:
parent
4851b0f1ac
commit
c76c4ba304
|
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue