Eeschema doesn't show highlight net until a screen redraw is made.

Fixes: lp:1796989
https://bugs.launchpad.net/kicad/+bug/1796989
This commit is contained in:
jean-pierre charras 2018-10-11 14:17:01 +02:00
parent 94cc1efbcc
commit 5c8c1cdb8f
1 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@
*/ */
#include <fctsys.h> #include <fctsys.h>
#include <sch_view.h>
#include <sch_draw_panel.h> #include <sch_draw_panel.h>
#include <sch_edit_frame.h> #include <sch_edit_frame.h>
#include <erc.h> #include <erc.h>
@ -69,7 +70,7 @@ bool SCH_EDIT_FRAME::HighlightConnectionAtPosition( wxPoint aPosition )
SendCrossProbeNetName( m_SelectedNetName ); SendCrossProbeNetName( m_SelectedNetName );
SetStatusText( "selected net: " + m_SelectedNetName ); SetStatusText( "selected net: " + m_SelectedNetName );
SetCurrentSheetHighlightFlags(); SetCurrentSheetHighlightFlags();
m_canvas->Refresh(); GetGalCanvas()->GetView()->MarkTargetDirty( KIGFX::TARGET_NONCACHED );
return buildNetlistOk; return buildNetlistOk;
} }