Fix a crash with action durations if there are fake markers added

This commit is contained in:
baldurk
2021-07-27 15:11:43 +01:00
parent 4bb3286d05
commit 97a83f4dc4
+1 -1
View File
@@ -249,7 +249,7 @@ struct EventItemModel : public QAbstractItemModel
void SetTimes(const rdcarray<CounterResult> &times)
{
// set all times for events to -1.0
m_Times.fill(m_Nodes[0].effectiveEID + 1, -1.0);
m_Times.fill(m_Actions.size() + 1, -1.0);
// fill in the actual times
for(const CounterResult &r : times)