Browse Source

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
newinvert
Marek Roszko 2 years ago
parent
commit
f894a41dc2
  1. 2
      eeschema/eeschema_jobs_handler.cpp

2
eeschema/eeschema_jobs_handler.cpp

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

Loading…
Cancel
Save