Commit 27a0c73c authored by faa's avatar faa

minor bug russian GOST

parent 32336225
...@@ -235,7 +235,11 @@ int WinEDA_CvpcbFrame::ReadSchematicNetlist() ...@@ -235,7 +235,11 @@ int WinEDA_CvpcbFrame::ReadSchematicNetlist()
/* debut reference trouv */ /* debut reference trouv */
for( ; ; i++ ) for( ; ; i++ )
{ {
#if defined(KICAD_GOST)
if( Line[i] == ' ' )
#else
if( Line[i] <= ' ' ) if( Line[i] <= ' ' )
#endif
break; break;
component_reference.Append( Line[i] ); component_reference.Append( Line[i] );
} }
...@@ -248,7 +252,11 @@ int WinEDA_CvpcbFrame::ReadSchematicNetlist() ...@@ -248,7 +252,11 @@ int WinEDA_CvpcbFrame::ReadSchematicNetlist()
for( ; ; i++ ) for( ; ; i++ )
{ {
#if defined(KICAD_GOST)
if( Line[i] == ' ' )
#else
if( Line[i] <= ' ' ) if( Line[i] <= ' ' )
#endif
break; break;
component_value.Append( Line[i] ); component_value.Append( Line[i] );
} }
......
...@@ -951,7 +951,11 @@ bool SCH_COMPONENT::Save( FILE* f ) const ...@@ -951,7 +951,11 @@ bool SCH_COMPONENT::Save( FILE* f ) const
} }
for( ii = 0; ii < (int) strlen( Name1 ); ii++ ) 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] = '~'; Name1[ii] = '~';
} }
...@@ -959,7 +963,11 @@ bool SCH_COMPONENT::Save( FILE* f ) const ...@@ -959,7 +963,11 @@ bool SCH_COMPONENT::Save( FILE* f ) const
{ {
strncpy( Name2, CONV_TO_UTF8( m_ChipName ), sizeof( Name2 ) ); strncpy( Name2, CONV_TO_UTF8( m_ChipName ), sizeof( Name2 ) );
for( ii = 0; ii < (int) strlen( Name2 ); ii++ ) for( ii = 0; ii < (int) strlen( Name2 ); ii++ )
#if defined(KICAD_GOST)
if( Name2[ii] == ' ' )
#else
if( Name2[ii] <= ' ' ) if( Name2[ii] <= ' ' )
#endif
Name2[ii] = '~'; Name2[ii] = '~';
} }
else 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