Fix highlight bug.
Fixes: lp:1834960 * https://bugs.launchpad.net/kicad/+bug/1834960
This commit is contained in:
parent
9effd24f3a
commit
faa730dfb1
|
@ -1739,7 +1739,12 @@ void SELECTION_TOOL::highlight( BOARD_ITEM* aItem, int aMode, PCBNEW_SELECTION*
|
|||
});
|
||||
}
|
||||
|
||||
getView()->Update( aItem );
|
||||
view()->Update( aItem );
|
||||
|
||||
// Many selections are very temporal and updating the display each time just
|
||||
// creates noise.
|
||||
if( aMode == BRIGHTENED )
|
||||
getView()->MarkTargetDirty( KIGFX::TARGET_OVERLAY );
|
||||
}
|
||||
|
||||
|
||||
|
@ -1781,7 +1786,12 @@ void SELECTION_TOOL::unhighlight( BOARD_ITEM* aItem, int aMode, PCBNEW_SELECTION
|
|||
});
|
||||
}
|
||||
|
||||
getView()->Update( aItem );
|
||||
view()->Update( aItem );
|
||||
|
||||
// Many selections are very temporal and updating the display each time just
|
||||
// creates noise.
|
||||
if( aMode == BRIGHTENED )
|
||||
getView()->MarkTargetDirty( KIGFX::TARGET_OVERLAY );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue