Fix std::string to wxString conversion bug in Pcbnew. (fixes lp:1226670)

This commit is contained in:
Wayne Stambaugh 2013-09-18 07:15:17 -04:00
parent 6fb731189c
commit 5202ec58c7
1 changed files with 3 additions and 2 deletions

View File

@ -324,14 +324,15 @@ void DIALOG_EXCHANGE_MODULE::Change_ModuleId( bool aUseValue )
check_module_value = true;
value = m_CurrentModule->GetValue();
msg.Printf( _( "Change modules %s -> %s (for value = %s)?" ),
m_CurrentModule->GetFPID().Format().c_str(),
GetChars( FROM_UTF8( m_CurrentModule->GetFPID().Format().c_str() ) ),
GetChars( newmodulename ),
GetChars( m_CurrentModule->GetValue() ) );
}
else
{
msg.Printf( _( "Change modules %s -> %s ?" ),
lib_reference.GetFootprintName().c_str(), GetChars( newmodulename ) );
GetChars( FROM_UTF8( lib_reference.Format().c_str() ) ),
GetChars( newmodulename ) );
}
if( !IsOK( this, msg ) )