Commit 12fa5f02 authored by charras's avatar charras

eeschema: fixed minor problem when displaying pin info in schematic

parent 1fec58e8
...@@ -1230,7 +1230,7 @@ void LIB_PIN::DisplayInfo( WinEDA_DrawFrame* frame ) ...@@ -1230,7 +1230,7 @@ void LIB_PIN::DisplayInfo( WinEDA_DrawFrame* frame )
break; break;
} }
frame->MsgPanel->AppendMessage( _( "Oriention" ), Text, MAGENTA ); frame->MsgPanel->AppendMessage( _( "Orientation" ), Text, MAGENTA );
} }
......
...@@ -84,10 +84,11 @@ SCH_ITEM* WinEDA_SchematicFrame:: SchematicGeneralLocateAndDisplay( bool Include ...@@ -84,10 +84,11 @@ SCH_ITEM* WinEDA_SchematicFrame:: SchematicGeneralLocateAndDisplay( bool Include
/* Force display pin infos (the previous display could be a component info) */ /* Force display pin infos (the previous display could be a component info) */
Pin->DisplayInfo( this ); Pin->DisplayInfo( this );
if( LibItem ) if( LibItem )
Affiche_1_Parametre( this, 1, {
LibItem->GetRef( GetSheet() ), MsgPanel->AppendMessage( LibItem->GetRef( GetSheet() ),
LibItem->GetField( VALUE )->m_Text, LibItem->GetField( VALUE )->m_Text,
CYAN ); DARKCYAN );
}
// Cross probing:2 - pin found, and send a locate pin command to pcbnew (hightlight net) // Cross probing:2 - pin found, and send a locate pin command to pcbnew (hightlight net)
SendMessageToPCBNEW( Pin, LibItem ); SendMessageToPCBNEW( Pin, LibItem );
...@@ -153,10 +154,11 @@ SCH_ITEM* WinEDA_SchematicFrame:: SchematicGeneralLocateAndDisplay( const wxPoin ...@@ -153,10 +154,11 @@ SCH_ITEM* WinEDA_SchematicFrame:: SchematicGeneralLocateAndDisplay( const wxPoin
{ {
Pin->DisplayInfo( this ); Pin->DisplayInfo( this );
if( LibItem ) if( LibItem )
Affiche_1_Parametre( this, 1, {
LibItem->GetRef( GetSheet() ), MsgPanel->AppendMessage( LibItem->GetRef( GetSheet() ),
LibItem->GetField( VALUE )->m_Text, LibItem->GetField( VALUE )->m_Text,
CYAN ); DARKCYAN );
}
} }
else else
MsgPanel->EraseMsgBox(); MsgPanel->EraseMsgBox();
...@@ -179,10 +181,11 @@ SCH_ITEM* WinEDA_SchematicFrame:: SchematicGeneralLocateAndDisplay( const wxPoin ...@@ -179,10 +181,11 @@ SCH_ITEM* WinEDA_SchematicFrame:: SchematicGeneralLocateAndDisplay( const wxPoin
{ {
Pin->DisplayInfo( this ); Pin->DisplayInfo( this );
if( LibItem ) if( LibItem )
Affiche_1_Parametre( this, 1, {
LibItem->GetRef( GetSheet() ), MsgPanel->AppendMessage( LibItem->GetRef( GetSheet() ),
LibItem->GetField( VALUE )->m_Text, LibItem->GetField( VALUE )->m_Text,
CYAN ); DARKCYAN );
}
if( IncludePin ) if( IncludePin )
return LibItem; return LibItem;
} }
......
No preview for this file type
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment