Show message panel info for highlighted net in GAL (Fixes lp:1518626)
This commit is contained in:
parent
f576596375
commit
f107545a82
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue