diff --git a/src/macro-core/macro-tree.cpp b/src/macro-core/macro-tree.cpp index a72fb7fb..aabb5e85 100644 --- a/src/macro-core/macro-tree.cpp +++ b/src/macro-core/macro-tree.cpp @@ -231,6 +231,10 @@ static inline int MacroIndexToModelIndex(int realIdx, const std::deque> ¯os) { + if (realIdx == -1) { + return -1; + } + int modelIdx = 0; bool inCollapsedGroup = false; uint32_t groupSize = 0;