From f107545a8298fce7da8dbc9bdb4734c358ea3505 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Mon, 27 Nov 2017 21:07:59 -0500 Subject: [PATCH] Show message panel info for highlighted net in GAL (Fixes lp:1518626) --- pcbnew/tools/pcb_editor_control.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pcbnew/tools/pcb_editor_control.cpp b/pcbnew/tools/pcb_editor_control.cpp index 28c0602987..f19a0e8747 100644 --- a/pcbnew/tools/pcb_editor_control.cpp +++ b/pcbnew/tools/pcb_editor_control.cpp @@ -1069,9 +1069,23 @@ static bool highlightNet( TOOL_MANAGER* aToolMgr, const VECTOR2D& aPosition ) // Store the highlighted netcode in the current board (for dialogs for instance) if( enableHighlight && net >= 0 ) + { board->SetHighLightNet( net ); + + NETINFO_ITEM* netinfo = board->FindNet( net ); + + if( netinfo ) + { + MSG_PANEL_ITEMS items; + netinfo->GetMsgPanelInfo( items ); + frame->SetMsgPanel( items ); + } + } else + { board->ResetHighLight(); + frame->SetMsgPanel( board ); + } return true; }