Show message panel info for highlighted net in GAL (Fixes lp:1518626)

This commit is contained in:
Jon Evans 2017-11-27 21:07:59 -05:00 committed by jean-pierre charras
parent f576596375
commit f107545a82
1 changed files with 14 additions and 0 deletions

View File

@ -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) // Store the highlighted netcode in the current board (for dialogs for instance)
if( enableHighlight && net >= 0 ) if( enableHighlight && net >= 0 )
{
board->SetHighLightNet( net ); board->SetHighLightNet( net );
NETINFO_ITEM* netinfo = board->FindNet( net );
if( netinfo )
{
MSG_PANEL_ITEMS items;
netinfo->GetMsgPanelInfo( items );
frame->SetMsgPanel( items );
}
}
else else
{
board->ResetHighLight(); board->ResetHighLight();
frame->SetMsgPanel( board );
}
return true; return true;
} }