From 906c08afc6aa7b9ae88e36922d1f79bb826b026c Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 15 Oct 2018 19:56:54 +0200 Subject: [PATCH] Cross probing: ensure highlighted net in Eeschema is shown when cross probed from Pcbnew. --- eeschema/cross-probing.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eeschema/cross-probing.cpp b/eeschema/cross-probing.cpp index 5f4cfc3fab..1fb06dd031 100644 --- a/eeschema/cross-probing.cpp +++ b/eeschema/cross-probing.cpp @@ -42,6 +42,7 @@ #include #include #include +#include /** @@ -81,7 +82,9 @@ void SCH_EDIT_FRAME::ExecuteRemoteCommand( const char* cmdline ) SetStatusText( _( "Selected net: " ) + m_SelectedNetName ); SetCurrentSheetHighlightFlags(); - m_canvas->Refresh(); + // Be sure hightlight change will be redrawn in any case + GetGalCanvas()->GetView()->RecacheAllItems(); + GetGalCanvas()->GetView()->MarkTargetDirty( KIGFX::TARGET_NONCACHED ); } return;