NETLIST_EXPORTER_PSPICE fix

This commit is contained in:
Maciej Suminski 2016-08-11 14:41:37 +02:00
parent 06463252d7
commit 1c74e27366
1 changed files with 2 additions and 2 deletions

View File

@ -67,12 +67,12 @@ bool NETLIST_EXPORTER_PSPICE::Format( OUTPUTFORMATTER* aFormatter, unsigned aCtl
{
// Case of Alt Sequence definition with Unused/Invalid Node index:
// Valid used Node Indexes are in the set
// {0,1,2,...m_SortedComponentPinList.size()-1}
// {0,1,2,...m_item.m_pin.size()-1}
if( !item.m_pinSequence.empty() )
{
// All Vector values must be less <= max package size
// And Total Vector size should be <= package size
if( ( (unsigned) item.m_pinSequence[ii] < m_SortedComponentPinList.size() )
if( ( (unsigned) item.m_pinSequence[ii] < item.m_pins.size() )
&& ( ii < item.m_pinSequence.size() ) )
{
// Case of Alt Pin Sequence in control good Index: