mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
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:
parent
4ac499b7cf
commit
89aeba24f8
@ -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++;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user