Fix SymbolCount() to what was intended back in 2008

Great mileage on this bug, only 500,000 miles! Yep, could get another 300,000 on it.
Or we can send it to the scrapper
This commit is contained in:
Marek Roszko 2025-05-02 19:18:44 -04:00
parent 4ac499b7cf
commit 89aeba24f8

View File

@ -738,8 +738,7 @@ int SCH_SHEET::SymbolCount() const
{
SCH_SYMBOL* symbol = (SCH_SYMBOL*) aItem;
const wxString value = symbol->GetField( FIELD_T::VALUE )->GetText();
if( value.empty() || value.GetChar( 0 ) != '#' )
if( !symbol->IsPower() )
n++;
}