From 643d9901c7e9cfacb6390462145e0b8f24b59493 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sat, 23 Feb 2019 11:05:54 -0800 Subject: [PATCH] eeschema: Refresh canvas after clearing Forces a canvas update to change the highlighting after clearing the selected item. Fixes: lp:1809731 * https://bugs.launchpad.net/kicad/+bug/1809731 --- eeschema/cross-probing.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eeschema/cross-probing.cpp b/eeschema/cross-probing.cpp index bc51216b1d..7937507534 100644 --- a/eeschema/cross-probing.cpp +++ b/eeschema/cross-probing.cpp @@ -102,7 +102,10 @@ void SCH_EDIT_FRAME::ExecuteRemoteCommand( const char* cmdline ) if( strcmp( idcmd, "$CLEAR:" ) == 0 ) { if( text && strcmp( text, "HIGHLIGHTED" ) == 0 ) + { GetCanvas()->GetView()->HighlightItem( nullptr, nullptr ); + GetCanvas()->Refresh(); + } return; }