Fix crash when deleting multiple macros in combination with a group

This commit is contained in:
WarmUpTill 2023-03-24 23:30:25 +01:00 committed by WarmUpTill
parent e465c81bf1
commit e194fc5ee4

View File

@ -231,6 +231,10 @@ static inline int
MacroIndexToModelIndex(int realIdx,
const std::deque<std::shared_ptr<Macro>> &macros)
{
if (realIdx == -1) {
return -1;
}
int modelIdx = 0;
bool inCollapsedGroup = false;
uint32_t groupSize = 0;