From 0ab15fa0eec534c02ad44dc67549a854fdc86955 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 16 Feb 2018 11:52:59 +0100 Subject: [PATCH] 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 --- pcbnew/tools/pcb_editor_control.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcbnew/tools/pcb_editor_control.cpp b/pcbnew/tools/pcb_editor_control.cpp index 03d86b2c1e..a8dc7ac502 100644 --- a/pcbnew/tools/pcb_editor_control.cpp +++ b/pcbnew/tools/pcb_editor_control.cpp @@ -864,6 +864,10 @@ int PCB_EDITOR_CONTROL::CrossProbeSchToPcb( const TOOL_EVENT& aEvent ) // Otherwise simply select the corresponding 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(); } }