kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #32017
[PATCH] Show message panel info for highlighted net in GAL (Fixes lp:1518626)
Hi all,
Another quick fix for a behavior difference between GAL and legacy.
-Jon
From b293e78f3a67a4ffaf86a3834c8cf9c24a23471e Mon Sep 17 00:00:00 2001
From: Jon Evans <jon@xxxxxxxxxxxxx>
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 28c060298..f19a0e874 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;
}
--
2.14.1
Follow ups