Commit cf8f8ca2 authored by Andrey Fedorushkov's avatar Andrey Fedorushkov

minor fix component subref in russian GOST

parent 560abfa3
...@@ -261,7 +261,7 @@ wxString LIB_COMPONENT::GetLibraryName() ...@@ -261,7 +261,7 @@ wxString LIB_COMPONENT::GetLibraryName()
wxString LIB_COMPONENT::ReturnSubReference( int aUnit ) wxString LIB_COMPONENT::ReturnSubReference( int aUnit )
{ {
wxString subRef; wxString subRef;
#if defined(KICAD_GOST) #if defined(KICAD_GOST)
subRef.Printf( wxT(".%d" ), aUnit); subRef.Printf( wxT(".%d" ), aUnit);
#else #else
subRef.Append( wxChar(aUnit + 'A' - 1) ); subRef.Append( wxChar(aUnit + 'A' - 1) );
......
...@@ -597,14 +597,14 @@ int SCH_REFERENCE_LIST::CheckAnnotation( wxArrayString* aMessageList ) ...@@ -597,14 +597,14 @@ int SCH_REFERENCE_LIST::CheckAnnotation( wxArrayString* aMessageList )
if( componentFlatList[ii].CompareValue( componentFlatList[next] ) != 0 ) if( componentFlatList[ii].CompareValue( componentFlatList[next] ) != 0 )
{ {
#if defined(KICAD_GOST) #if defined(KICAD_GOST)
msg.Printf( _( "Different values for %s%d.%c (%s) and %s%d.%c (%s)" ), msg.Printf( _( "Different values for %s%d.%d (%s) and %s%d.%d (%s)" ),
GetChars( componentFlatList[ii].GetRef() ), GetChars( componentFlatList[ii].GetRef() ),
componentFlatList[ii].m_NumRef, componentFlatList[ii].m_NumRef,
componentFlatList[ii].m_Unit + '1' - 1, componentFlatList[ii].m_Unit,
GetChars( *componentFlatList[ii].m_Value ), GetChars( *componentFlatList[ii].m_Value ),
GetChars( componentFlatList[next].GetRef() ), GetChars( componentFlatList[next].GetRef() ),
componentFlatList[next].m_NumRef, componentFlatList[next].m_NumRef,
componentFlatList[next].m_Unit + '1' - 1, componentFlatList[next].m_Unit,
componentFlatList[next].m_Value->GetData() ); componentFlatList[next].m_Value->GetData() );
#else #else
msg.Printf( _( "Different values for %s%d%c (%s) and %s%d%c (%s)" ), msg.Printf( _( "Different values for %s%d%c (%s) and %s%d%c (%s)" ),
......
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