LIB_SYMBOL::IsMulti() seems to be wrong, use the iterate conditional as the multi-unit check instead

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16932
This commit is contained in:
Marek Roszko 2024-02-16 00:18:05 -05:00
parent 9e08e6e4f1
commit f894a41dc2
1 changed files with 1 additions and 1 deletions

View File

@ -716,7 +716,7 @@ int EESCHEMA_JOBS_HANDLER::doSymExportSvg( JOB_SYM_EXPORT_SVG* aSvgJob,
} }
//simplify the name if its single unit //simplify the name if its single unit
if( symbol->IsMulti() ) if( symbol->GetUnitCount() > 1 )
{ {
filename += wxString::Format( "_%d", unit ); filename += wxString::Format( "_%d", unit );