Fix for Spice library parser

This commit is contained in:
Maciej Suminski 2016-08-11 14:42:06 +02:00
parent cf9abef23a
commit 2740556505
1 changed files with 2 additions and 1 deletions

View File

@ -585,8 +585,9 @@ void DIALOG_SPICE_MODEL::updateFromFile( wxComboBox* aComboBox,
{
wxString data = line.Mid( idx );
data = data.AfterFirst( ' ' );
data.Trim( false );
data = data.BeforeFirst( ' ' );
data = data.Trim();
data.Trim();
if( !data.IsEmpty() )
aComboBox->Append( data );