Internal netnames must be used internally.

GetShownNetname() is only for the GUI, or for external programs.

Fixes: lp:1834510
* https://bugs.launchpad.net/kicad/+bug/1834510
This commit is contained in:
Jeff Young 2019-08-03 21:34:52 -06:00
parent ce7833b982
commit fb1d7811b1
1 changed files with 3 additions and 3 deletions

View File

@ -802,13 +802,13 @@ void CONNECTION_GRAPH::buildConnectionGraph()
case SCH_HIER_LABEL_T:
{
auto text = static_cast<SCH_TEXT*>( driver );
connection->ConfigureFromLabel( text->GetShownText() );
connection->ConfigureFromLabel( text->GetText() );
break;
}
case SCH_SHEET_PIN_T:
{
auto pin = static_cast<SCH_SHEET_PIN*>( driver );
connection->ConfigureFromLabel( pin->GetShownText() );
connection->ConfigureFromLabel( pin->GetText() );
break;
}
case SCH_PIN_T:
@ -1116,7 +1116,7 @@ void CONNECTION_GRAPH::buildConnectionGraph()
{
auto text = static_cast<SCH_TEXT*>( possible_driver );
auto c = std::make_shared<SCH_CONNECTION>( text, aSubgraph->m_sheet );
c->ConfigureFromLabel( text->GetShownText() );
c->ConfigureFromLabel( text->GetText() );
if( c->Type() != aSubgraph->m_driver_connection->Type() )
continue;