format string concatenation bug

This commit is contained in:
Dick Hollenbeck 2013-11-13 13:59:47 -06:00
parent d624dcebf2
commit b9bd421184
1 changed files with 3 additions and 2 deletions

View File

@ -139,8 +139,9 @@ void TOOL_MANAGER::RegisterTool( TOOL_BASE* aTool )
{ {
if( !static_cast<TOOL_INTERACTIVE*>( aTool )->Init() ) if( !static_cast<TOOL_INTERACTIVE*>( aTool )->Init() )
{ {
DisplayError( NULL, wxT( "Initialization of the %s tool failed" ) + std::string msg = StrPrintf( "Initialization of the %s tool failed", aTool->GetName().c_str() );
wxString( aTool->GetName().c_str(), wxConvUTF8 ) );
DisplayError( NULL, wxString::FromUTF8( msg.c_str() ) );
// Unregister the tool // Unregister the tool
m_toolState.erase( aTool ); m_toolState.erase( aTool );