Fix highlight bug.

Fixes: lp:1834960
* https://bugs.launchpad.net/kicad/+bug/1834960
This commit is contained in:
Jeff Young 2019-07-01 22:14:36 +01:00
parent 9effd24f3a
commit faa730dfb1
1 changed files with 12 additions and 2 deletions

View File

@ -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 );
}