Simplify previous fix to not include new strings.
This commit is contained in:
parent
fdcc97e604
commit
e7d4b4aefc
|
@ -477,6 +477,7 @@ int EESCHEMA_JOBS_HANDLER::doSymExportSvg( JOB_SYM_EXPORT_SVG* aSvgJob,
|
||||||
{
|
{
|
||||||
for( int convert = 1; convert < ( symbol->HasConversion() ? 2 : 1 ) + 1; ++convert )
|
for( int convert = 1; convert < ( symbol->HasConversion() ? 2 : 1 ) + 1; ++convert )
|
||||||
{
|
{
|
||||||
|
wxString filename;
|
||||||
wxFileName fn;
|
wxFileName fn;
|
||||||
|
|
||||||
fn.SetPath( aSvgJob->m_outputDirectory );
|
fn.SetPath( aSvgJob->m_outputDirectory );
|
||||||
|
@ -485,25 +486,23 @@ 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->IsMulti() )
|
||||||
{
|
{
|
||||||
fn.SetName( wxString::Format( wxS( "%s_%d%s" ),
|
filename = wxString::Format( "%s_%d", symbol->GetName().Lower(), unit );
|
||||||
symbol->GetName().Lower(),
|
|
||||||
unit,
|
if( convert == 2 )
|
||||||
convert == 2 ? wxS( "_demorgan" ) : wxS( "" ) ) );
|
filename += wxS( "_demorgan" );
|
||||||
wxPrintf( _( "Plotting symbol '%s' unit %d %sto '%s'\n" ),
|
|
||||||
symbol->GetName(),
|
fn.SetName( filename );
|
||||||
unit,
|
wxPrintf( _( "Plotting symbol '%s' unit %d to '%s'\n" ), symbol->GetName(), unit,
|
||||||
convert == 2 ? _( "(De Morgan) " ) : wxString( "" ),
|
|
||||||
fn.GetFullPath() );
|
fn.GetFullPath() );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fn.SetName( wxString::Format( wxS( "%s%s" ),
|
filename = symbol->GetName().Lower();
|
||||||
symbol->GetName().Lower(),
|
|
||||||
convert == 2 ? wxS( "_demorgan" ) : wxS( "" ) ) );
|
if( convert == 2 )
|
||||||
wxPrintf( _( "Plotting symbol '%s' %sto '%s'\n" ),
|
filename += wxS( "_demorgan" );
|
||||||
symbol->GetName(),
|
|
||||||
convert == 2 ? _( "(De Morgan) " ) : wxString( "" ),
|
wxPrintf( _( "Plotting symbol '%s' to '%s'\n" ), symbol->GetName(), fn.GetFullPath() );
|
||||||
fn.GetFullPath() );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the symbol bounding box to fit the plot page to it
|
// Get the symbol bounding box to fit the plot page to it
|
||||||
|
|
Loading…
Reference in New Issue