From 97a83f4dc4e6addfa672927c70d418b95922633d Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 27 Jul 2021 15:11:43 +0100 Subject: [PATCH] Fix a crash with action durations if there are fake markers added --- qrenderdoc/Windows/EventBrowser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrenderdoc/Windows/EventBrowser.cpp b/qrenderdoc/Windows/EventBrowser.cpp index aba359dbc..39753e2ff 100644 --- a/qrenderdoc/Windows/EventBrowser.cpp +++ b/qrenderdoc/Windows/EventBrowser.cpp @@ -249,7 +249,7 @@ struct EventItemModel : public QAbstractItemModel void SetTimes(const rdcarray ×) { // 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)