Pcbnew cross-probing: highlight in GAL canvas doesn't work properly when selecting a symbol in Eeschema on some installs.

This fix forces a refresh.

Fixes: lp:1749799
https://bugs.launchpad.net/kicad/+bug/1749799
This commit is contained in:
jean-pierre charras 2018-02-16 11:52:59 +01:00
parent 3c9a5b0966
commit 0ab15fa0ee
1 changed files with 4 additions and 0 deletions

View File

@ -864,6 +864,10 @@ int PCB_EDITOR_CONTROL::CrossProbeSchToPcb( const TOOL_EVENT& aEvent )
// Otherwise simply select the corresponding item // Otherwise simply select the corresponding item
{ {
m_toolMgr->RunAction( PCB_ACTIONS::selectItem, true, item ); m_toolMgr->RunAction( PCB_ACTIONS::selectItem, true, item );
// Ensure the display is refreshed, because in some installs
// the refresh is done only when the gal canvas has the focus, and
// that is not the case when crossprobing from Eeschema:
m_frame->GetGalCanvas()->Refresh();
} }
} }