Handle inference of V7 symbol lib DC voltage/current sources.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15127
This commit is contained in:
parent
534a3efce1
commit
30c2049977
|
@ -1342,7 +1342,7 @@ bool SIM_MODEL::InferSimModel( T_symbol& aSymbol, std::vector<T_field>* aFields,
|
|||
}
|
||||
|
||||
if( ( ( *aDeviceType == wxT( "V" ) || *aDeviceType == wxT( "I" ) )
|
||||
&& aModelType->IsEmpty() )
|
||||
&& ( aModelType->IsEmpty() || *aModelType == wxT( "DC" ) ) )
|
||||
||
|
||||
( aDeviceType->IsEmpty()
|
||||
&& aModelType->IsEmpty()
|
||||
|
|
|
@ -628,15 +628,12 @@ void SIMULATOR_PANEL::rebuildSignalsGrid( wxString aFilter )
|
|||
|
||||
m_signalsGrid->ClearRows();
|
||||
|
||||
if( aFilter.IsEmpty() )
|
||||
aFilter = wxS( "*" );
|
||||
SIM_PLOT_PANEL* plotPanel = dynamic_cast<SIM_PLOT_PANEL*>( GetCurrentPlotPanel() );
|
||||
|
||||
if( !plotPanel )
|
||||
return;
|
||||
|
||||
EDA_COMBINED_MATCHER matcher( aFilter.Upper(), CTX_SIGNAL );
|
||||
SIM_PLOT_PANEL* plotPanel = dynamic_cast<SIM_PLOT_PANEL*>( GetCurrentPlotPanel() );
|
||||
std::vector<wxString> signals;
|
||||
int row = 0;
|
||||
|
||||
wxCHECK( plotPanel, /* void */ );
|
||||
|
||||
if( plotPanel->GetSimType() == ST_FFT )
|
||||
{
|
||||
|
@ -653,6 +650,12 @@ void SIMULATOR_PANEL::rebuildSignalsGrid( wxString aFilter )
|
|||
signals.insert( signals.end(), m_signals.begin(), m_signals.end() );
|
||||
}
|
||||
|
||||
if( aFilter.IsEmpty() )
|
||||
aFilter = wxS( "*" );
|
||||
|
||||
EDA_COMBINED_MATCHER matcher( aFilter.Upper(), CTX_SIGNAL );
|
||||
int row = 0;
|
||||
|
||||
for( const wxString& signal : signals )
|
||||
{
|
||||
if( matcher.Find( signal.Upper() ) )
|
||||
|
|
Loading…
Reference in New Issue