Fix compatibility with older wxWidgets versions.

This commit is contained in:
jean-pierre charras 2023-02-02 20:38:51 +01:00
parent 2757d81231
commit 98e55c0a04
1 changed files with 2 additions and 2 deletions

View File

@ -1241,12 +1241,12 @@ size_t SCH_SCREEN::getLibSymbolNameMatches( const SCH_SYMBOL& aSymbol,
searchName = aSymbol.GetLibId().GetUniStringLibItemName() + wxS( "_" ); searchName = aSymbol.GetLibId().GetUniStringLibItemName() + wxS( "_" );
int tmp; long tmp;
wxString suffix; wxString suffix;
for( auto pair : m_libSymbols ) for( auto pair : m_libSymbols )
{ {
if( pair.first.StartsWith( searchName, &suffix ) && suffix.ToInt( &tmp ) ) if( pair.first.StartsWith( searchName, &suffix ) && suffix.ToLong( &tmp ) )
aMatches.emplace_back( pair.first ); aMatches.emplace_back( pair.first );
} }