From b9bd421184bf5ee619368455622ba9acf2ae6273 Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Wed, 13 Nov 2013 13:59:47 -0600 Subject: [PATCH] format string concatenation bug --- common/tool/tool_manager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/tool/tool_manager.cpp b/common/tool/tool_manager.cpp index 77b828a8ba..75ac02574e 100644 --- a/common/tool/tool_manager.cpp +++ b/common/tool/tool_manager.cpp @@ -139,8 +139,9 @@ void TOOL_MANAGER::RegisterTool( TOOL_BASE* aTool ) { if( !static_cast( aTool )->Init() ) { - DisplayError( NULL, wxT( "Initialization of the %s tool failed" ) + - wxString( aTool->GetName().c_str(), wxConvUTF8 ) ); + std::string msg = StrPrintf( "Initialization of the %s tool failed", aTool->GetName().c_str() ); + + DisplayError( NULL, wxString::FromUTF8( msg.c_str() ) ); // Unregister the tool m_toolState.erase( aTool );