minor bug russian GOST

This commit is contained in:
faa 2009-09-01 10:26:43 +00:00
parent 32336225b5
commit 27a0c73c2a
2 changed files with 17 additions and 1 deletions

View File

@ -235,7 +235,11 @@ int WinEDA_CvpcbFrame::ReadSchematicNetlist()
/* debut reference trouv */
for( ; ; i++ )
{
#if defined(KICAD_GOST)
if( Line[i] == ' ' )
#else
if( Line[i] <= ' ' )
#endif
break;
component_reference.Append( Line[i] );
}
@ -248,7 +252,11 @@ int WinEDA_CvpcbFrame::ReadSchematicNetlist()
for( ; ; i++ )
{
#if defined(KICAD_GOST)
if( Line[i] == ' ' )
#else
if( Line[i] <= ' ' )
#endif
break;
component_value.Append( Line[i] );
}

View File

@ -951,7 +951,11 @@ bool SCH_COMPONENT::Save( FILE* f ) const
}
for( ii = 0; ii < (int) strlen( Name1 ); ii++ )
{
if( Name1[ii] <= ' ' )
#if defined(KICAD_GOST)
if( Name1[ii] == ' ' )
#else
if( Name1[ii] <= ' ' )
#endif
Name1[ii] = '~';
}
@ -959,7 +963,11 @@ bool SCH_COMPONENT::Save( FILE* f ) const
{
strncpy( Name2, CONV_TO_UTF8( m_ChipName ), sizeof( Name2 ) );
for( ii = 0; ii < (int) strlen( Name2 ); ii++ )
#if defined(KICAD_GOST)
if( Name2[ii] == ' ' )
#else
if( Name2[ii] <= ' ' )
#endif
Name2[ii] = '~';
}
else