Commit 02d724af authored by charras's avatar charras

Fixed compatibility with wxWidgets 2.9.0

parent b338dfdc
......@@ -256,9 +256,14 @@ LIB_COMPONENT* CMP_LIBRARY::AddComponent( LIB_COMPONENT* aComponent )
( cparent->GetName().CmpNoCase( newCmp->GetName() ) != 0 ) )
{
wxString msg1;
wxString parentName;
if( cparent )
parentName = cparent->GetName();
else
parentName = _("not found");
msg1.Printf( _("alias <%s> already exists and has root name<%s>"),
GetChars( alias->GetName() ),
GetChars( cparent ? cparent->GetName() : _("unknown") ) );
GetChars( parentName ) );
msg << msg1 << wxT("\n");
conflict_count++;
}
......
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