Cross probing: ensure highlighted net in Eeschema is shown when cross probed from Pcbnew.

This commit is contained in:
jean-pierre charras 2018-10-15 19:56:54 +02:00
parent 9c398dbf90
commit 906c08afc6
1 changed files with 4 additions and 1 deletions

View File

@ -42,6 +42,7 @@
#include <lib_pin.h> #include <lib_pin.h>
#include <sch_component.h> #include <sch_component.h>
#include <sch_sheet.h> #include <sch_sheet.h>
#include <sch_view.h>
/** /**
@ -81,7 +82,9 @@ void SCH_EDIT_FRAME::ExecuteRemoteCommand( const char* cmdline )
SetStatusText( _( "Selected net: " ) + m_SelectedNetName ); SetStatusText( _( "Selected net: " ) + m_SelectedNetName );
SetCurrentSheetHighlightFlags(); SetCurrentSheetHighlightFlags();
m_canvas->Refresh(); // Be sure hightlight change will be redrawn in any case
GetGalCanvas()->GetView()->RecacheAllItems();
GetGalCanvas()->GetView()->MarkTargetDirty( KIGFX::TARGET_NONCACHED );
} }
return; return;