Fix for Spice library parser
This commit is contained in:
parent
cf9abef23a
commit
2740556505
|
@ -585,8 +585,9 @@ void DIALOG_SPICE_MODEL::updateFromFile( wxComboBox* aComboBox,
|
||||||
{
|
{
|
||||||
wxString data = line.Mid( idx );
|
wxString data = line.Mid( idx );
|
||||||
data = data.AfterFirst( ' ' );
|
data = data.AfterFirst( ' ' );
|
||||||
|
data.Trim( false );
|
||||||
data = data.BeforeFirst( ' ' );
|
data = data.BeforeFirst( ' ' );
|
||||||
data = data.Trim();
|
data.Trim();
|
||||||
|
|
||||||
if( !data.IsEmpty() )
|
if( !data.IsEmpty() )
|
||||||
aComboBox->Append( data );
|
aComboBox->Append( data );
|
||||||
|
|
Loading…
Reference in New Issue