Rename SCH_COMPONENT to SCH_SYMBOL.
This commit is contained in:
@@ -219,11 +219,11 @@ bool SCHEMATIC::ResolveCrossReference( wxString* token, int aDepth ) const
|
||||
SCH_SHEET_PATH dummy;
|
||||
SCH_ITEM* refItem = sheetList.GetItem( KIID( ref ), &dummy );
|
||||
|
||||
if( refItem && refItem->Type() == SCH_COMPONENT_T )
|
||||
if( refItem && refItem->Type() == SCH_SYMBOL_T )
|
||||
{
|
||||
SCH_COMPONENT* refComponent = static_cast<SCH_COMPONENT*>( refItem );
|
||||
SCH_SYMBOL* refSymbol = static_cast<SCH_SYMBOL*>( refItem );
|
||||
|
||||
if( refComponent->ResolveTextVar( &remainder, aDepth + 1 ) )
|
||||
if( refSymbol->ResolveTextVar( &remainder, aDepth + 1 ) )
|
||||
{
|
||||
*token = remainder;
|
||||
return true;
|
||||
@@ -278,7 +278,7 @@ wxString SCHEMATIC::ConvertRefsToKIIDs( const wxString& aSource ) const
|
||||
|
||||
for( size_t jj = 0; jj < references.GetCount(); jj++ )
|
||||
{
|
||||
SCH_COMPONENT* refSymbol = references[ jj ].GetSymbol();
|
||||
SCH_SYMBOL* refSymbol = references[ jj ].GetSymbol();
|
||||
|
||||
if( ref == refSymbol->GetRef( &references[ jj ].GetSheetPath(), true ) )
|
||||
{
|
||||
@@ -336,10 +336,10 @@ wxString SCHEMATIC::ConvertKIIDsToRefs( const wxString& aSource ) const
|
||||
SCH_SHEET_PATH refSheetPath;
|
||||
SCH_ITEM* refItem = sheetList.GetItem( KIID( ref ), &refSheetPath );
|
||||
|
||||
if( refItem && refItem->Type() == SCH_COMPONENT_T )
|
||||
if( refItem && refItem->Type() == SCH_SYMBOL_T )
|
||||
{
|
||||
SCH_COMPONENT* refComponent = static_cast<SCH_COMPONENT*>( refItem );
|
||||
token = refComponent->GetRef( &refSheetPath, true ) + ":" + remainder;
|
||||
SCH_SYMBOL* refSymbol = static_cast<SCH_SYMBOL*>( refItem );
|
||||
token = refSymbol->GetRef( &refSheetPath, true ) + ":" + remainder;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user