From 5c8c1cdb8fe11f3b8bd118934efecdec5a34310c Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 11 Oct 2018 14:17:01 +0200 Subject: [PATCH] Eeschema doesn't show highlight net until a screen redraw is made. Fixes: lp:1796989 https://bugs.launchpad.net/kicad/+bug/1796989 --- eeschema/highlight_connection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eeschema/highlight_connection.cpp b/eeschema/highlight_connection.cpp index 128ab0bf1c..c9584099f8 100644 --- a/eeschema/highlight_connection.cpp +++ b/eeschema/highlight_connection.cpp @@ -29,6 +29,7 @@ */ #include +#include #include #include #include @@ -69,7 +70,7 @@ bool SCH_EDIT_FRAME::HighlightConnectionAtPosition( wxPoint aPosition ) SendCrossProbeNetName( m_SelectedNetName ); SetStatusText( "selected net: " + m_SelectedNetName ); SetCurrentSheetHighlightFlags(); - m_canvas->Refresh(); + GetGalCanvas()->GetView()->MarkTargetDirty( KIGFX::TARGET_NONCACHED ); return buildNetlistOk; }