Commit 2fb1de80 authored by Dick Hollenbeck's avatar Dick Hollenbeck

Running cmake with -DCMAKE_BUILD_TYPE="Debug" causes build errors at:

/pcbnew/class_netclass.cpp:324
eeschema/class_sch_component.cpp:933
parent 73f37365
......@@ -930,9 +930,9 @@ void SCH_COMPONENT::Show( int nestLevel, std::ostream& os )
{
// for now, make it look like XML:
NestedSpace( nestLevel, os ) << '<' << GetClass().Lower().mb_str()
<< " ref=\"" << ReturnFieldName( 0 )
<< " ref=\"" << CONV_TO_UTF8( ReturnFieldName( 0 ) )
<< '"' << " chipName=\""
<< m_ChipName.mb_str() << '"' << m_Pos
<< CONV_TO_UTF8( m_ChipName ) << '"' << m_Pos
<< " layer=\"" << m_Layer
<< '"' << "/>\n";
......@@ -944,13 +944,13 @@ void SCH_COMPONENT::Show( int nestLevel, std::ostream& os )
if( !value.IsEmpty() )
{
NestedSpace( nestLevel + 1, os ) << "<field" << " name=\""
<< ReturnFieldName( i ).mb_str()
<< CONV_TO_UTF8( ReturnFieldName( i ) )
<< '"' << " value=\""
<< value.mb_str() << "\"/>\n";
<< CONV_TO_UTF8( value ) << "\"/>\n";
}
}
NestedSpace( nestLevel, os ) << "</" << GetClass().Lower().mb_str()
NestedSpace( nestLevel, os ) << "</" << CONV_TO_UTF8( GetClass().Lower() )
<< ">\n";
}
......
......@@ -321,7 +321,7 @@ void NETCLASS::Show( int nestLevel, std::ostream& os )
for( const_iterator i = begin(); i!=end(); ++i )
{
// NestedSpace( nestLevel+1, os ) << *i;
os << *i;
os << CONV_TO_UTF8( *i );
}
// NestedSpace( nestLevel, os )
......
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