Commit 27a0c73c authored by faa's avatar faa

minor bug russian GOST

parent 32336225
......@@ -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] );
}
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment