Fixed compatibility with wxWidgets 2.9.0

This commit is contained in:
charras 2010-03-03 19:12:55 +00:00
parent b338dfdccb
commit 02d724af0a
1 changed files with 6 additions and 1 deletions

View File

@ -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++;
}