Eeschema: Add "append schematic" feature. Fix bug 1101718 <Empty plot filename>

This commit is contained in:
Jacobo Aragunde Perez
2013-01-24 18:46:37 +01:00
committed by jean-pierre charras
parent 72690e769c
commit a641ebb344
7 changed files with 186 additions and 66 deletions
+4 -4
View File
@@ -860,13 +860,13 @@ CMP_LIBRARY* CMP_LIBRARY::FindLibrary( const wxString& aName )
wxArrayString CMP_LIBRARY::GetLibraryNames( bool aSorted )
{
wxString cacheName;
wxArrayString cacheNames;
wxArrayString names;
BOOST_FOREACH( CMP_LIBRARY& lib, CMP_LIBRARY::libraryList )
{
if( lib.isCache && aSorted )
cacheName = lib.GetName();
cacheNames.Add( lib.GetName() );
else
names.Add( lib.GetName() );
}
@@ -875,8 +875,8 @@ wxArrayString CMP_LIBRARY::GetLibraryNames( bool aSorted )
if( aSorted )
names.Sort();
if( !cacheName.IsEmpty() )
names.Add( cacheName );
for( unsigned int i = 0; i<cacheNames.Count(); i++ )
names.Add( cacheNames.Item( i ) );
return names;
}