Fix: init m_timeSteps-vector in case its size is 0: m_timeSteps.push_back(QList<int>()).
Detected during testing.
This commit is contained in:
parent
ea0bcde413
commit
24ca857b6f
@ -1833,6 +1833,8 @@ QList<int> Calculator::GetTimeSteps(Configuration *cfg, int paymentOptionIndex)
|
||||
if (m_timeSteps.size() > paymentOptionIndex) {
|
||||
//qCritical() << __PRETTY_FUNCTION__ << "timeSteps:" << m_timeSteps;
|
||||
return m_timeSteps[paymentOptionIndex];
|
||||
} else {
|
||||
m_timeSteps.push_back(QList<int>());
|
||||
}
|
||||
|
||||
QDateTime start = QDateTime::currentDateTime();
|
||||
|
Loading…
Reference in New Issue
Block a user